以下のコマンドで見ることができますが、まとめておきます。
usage
apk add [<OPTIONS>...] PACKAGES...
description
apk add は、要求されたパッケージを WORLD に追加し、まだ存在しない場合はインストール (またはアップグレード) して、すべての依存関係が満たされていることを確認します。
Global options
option |
description |
-f, --force |
Enable selected --force-* options (deprecated) |
-i, --interactive |
Ask confirmation before performing certain operations |
-p, --root |
Manage file system at ROOT |
-q, --quiet |
Print less information |
-U, --update-cache |
Alias for '--cache-max-age 1' |
-v, --verbose |
Print more information (can be specified twice) |
-V, --version |
Print program version and exit |
-X, --repository |
Specify additional package repository |
--allow-untrusted |
Install packages with untrusted signature or no signature |
--arch ARCH |
Temporarily override architecture, to be combined with --root |
--cache-dir CACHEDIR |
Temporarily override the cache directory |
--cache-max-age AGE |
Maximum AGE (in minutes) for index in cache before it's refreshed |
--force-binary-stdout |
Continue even if binary data will be printed to the terminal |
--force-broken-world |
Continue even if WORLD cannot be satisfied |
--force-non-repository |
Continue even if packages may be lost on reboot |
--force-old-apk |
Continue even if packages use unsupported features |
--force-overwrite |
Overwrite files in other packages |
--force-refresh |
Do not use cached files (local or from proxy) |
--keys-dir KEYSDIR |
Override directory of trusted keys |
--no-cache |
Do not use any local cache path |
--no-network |
Do not use the network |
--no-progress |
Disable progress bar even for TTYs |
--print-arch |
Print default arch and exit |
--progress |
Show progress |
--progress-fd FD |
Write progress to the specified file descriptor |
--purge |
Delete modified configuration files on package removal and uninstalled packages from cache on cache clean |
--repositories-file REPOFILE |
Override system repositories, see repositories |
--wait TIME |
Wait for TIME seconds to get an exclusive repository lock before failing |
Commit options
option |
description |
-s, --simulate |
Simulate the requested operation without making any changes |
--clean-protected |
Do not create .apk-new files in configuration directories |
--overlay-from-stdin |
Read list of overlay files from stdin |
--no-scripts |
Do not execute any scripts |
--no-commit-hooks |
Skip pre/post hook scripts (but not other scripts) |
--initramfs-diskless-boot |
Used by initramfs when it's recreating root tmpfs |
Add options
option |
description |
--initdb |
Initialize a new package database |
-l, --latest |
Always choose the latest package by version |
-u, --upgrade |
Upgrade PACKAGES and it's dependencies |
-t, --virtual NAME |
Create virtual package NAME with given dependencies |
--no-chown |
Do not change file owner or group |