🖥

#docker の Alipine で yum install も apt-get install もできないけど、どうなってんの? ap

2019/09/24に公開

vim をインストールしてみる

apk add vim

bash-4.4# apk add vim
(1/2) Installing lua5.2-libs (5.2.4-r4)
(2/2) Installing vim (8.0.1359-r2)
Executing busybox-1.27.2-r11.trigger
OK: 636 MiB in 140 packages

いけた。

参考

Alpine Linux入門 -内部構造とapkでパッケージインストール編- · tehepero note(・ω<) 2.0

Help

apk

apk-tools 2.10.1, compiled for x86_64.

Installing and removing packages:
  add       Add PACKAGEs to 'world' and install (or upgrade) them, while ensuring that all dependencies are met
  del       Remove PACKAGEs from 'world' and uninstall them

System maintenance:
  fix       Repair package or upgrade it without modifying main dependencies
  update    Update repository indexes from all remote repositories
  upgrade   Upgrade currently installed packages to match repositories
  cache     Download missing PACKAGEs to cache and/or delete unneeded files from cache

Querying information about packages:
  info      Give detailed information about PACKAGEs or repositories
  list      List packages by PATTERN and other criteria
  dot       Generate graphviz graphs
  policy    Show repository policy for packages

Repository maintenance:
  index     Create repository index file from FILEs
  fetch     Download PACKAGEs from global repositories to a local directory
  verify    Verify package integrity and signature
  manifest  Show checksums of package contents

Use apk <command> --help for command-specific help.
Use apk --help --verbose for a full command listing.

This apk has coffee making abilities.

Original by Github issue

https://github.com/YumaInaura/YumaInaura/issues/2518

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

https://line.me/ti/g2/eEPltQ6Tzh3pYAZV8JXKZqc7PJ6L0rpm573dcQ

Twitter

https://twitter.com/YumaInaura

公開日時

2019-09-24

Discussion