2020-01-06 21:23:24 +00:00
|
|
|
apk(8)
|
|
|
|
|
|
|
|
# NAME
|
|
|
|
|
|
|
|
apk - Alpine Package Keeper
|
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
|
|
|
*apk* [<_options_>...] _command_ [<_arguments_>...]
|
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
2020-05-04 12:24:58 +00:00
|
|
|
*apk* manages packages installed on the system. The set of top level packages
|
|
|
|
to install is called the _world_ (see *apk-world*(5)). *apk* supports various
|
|
|
|
sub-commands to query and manipulate _world_ and local & remote package
|
|
|
|
repositories.
|
2020-01-06 21:23:24 +00:00
|
|
|
|
2021-02-14 15:01:02 +00:00
|
|
|
All apk commands which modify the database are logged to /var/log/apk.log.
|
|
|
|
|
2020-01-06 21:23:24 +00:00
|
|
|
# COMMANDS
|
|
|
|
|
|
|
|
Each command is documented in detail on its manual page.
|
|
|
|
|
|
|
|
## PACKAGE INSTALLATION AND REMOVAL
|
|
|
|
|
|
|
|
|[ *apk-add*(8)
|
|
|
|
:< Add packages to _world_ and commit changes
|
2020-04-24 08:47:26 +00:00
|
|
|
| *apk-del*(8)
|
2020-01-06 21:23:24 +00:00
|
|
|
: Remove packages from _world_ and commit changes
|
|
|
|
|
|
|
|
## SYSTEM MAINTENANCE
|
|
|
|
|
|
|
|
|[ *apk-fix*(8)
|
2020-05-04 12:24:58 +00:00
|
|
|
:< Fix, reinstall or upgrade packages without modifying _world_
|
2020-01-06 21:23:24 +00:00
|
|
|
| *apk-update*(8)
|
|
|
|
: Update repository indexes
|
|
|
|
| *apk-upgrade*(8)
|
|
|
|
: Install upgrades available from repositories
|
|
|
|
| *apk-cache*(8)
|
2020-05-04 12:24:58 +00:00
|
|
|
: Manage the local package cache
|
2020-01-06 21:23:24 +00:00
|
|
|
|
|
|
|
## QUERYING PACKAGE INFORMATION
|
|
|
|
|
|
|
|
|[ *apk-info*(8)
|
|
|
|
:< Give detailed information about packages or repositories
|
|
|
|
| *apk-list*(8)
|
2020-01-08 01:39:39 +00:00
|
|
|
: List packages matching a pattern or other criteria
|
2020-01-06 21:23:24 +00:00
|
|
|
| *apk-dot*(8)
|
2020-05-04 12:24:58 +00:00
|
|
|
: Render dependencies as graphviz graphs
|
2020-01-06 21:23:24 +00:00
|
|
|
| *apk-policy*(8)
|
|
|
|
: Show repository policy for packages
|
2021-06-10 19:05:35 +00:00
|
|
|
| *apk-search*(8)
|
|
|
|
: Search for packages by name or description
|
2020-01-06 21:23:24 +00:00
|
|
|
|
|
|
|
## REPOSITORY MAINTENANCE
|
|
|
|
|
|
|
|
|[ *apk-index*(8)
|
|
|
|
:< Create repository index file from packages
|
|
|
|
| *apk-fetch*(8)
|
|
|
|
: Download packages from global repositories to a local directory
|
|
|
|
| *apk-manifest*(8)
|
|
|
|
: Show checksums of package contents
|
|
|
|
| *apk-verify*(8)
|
|
|
|
: Verify package integrity and signature
|
|
|
|
|
|
|
|
## MISCELLANEOUS
|
|
|
|
|
|
|
|
|[ *apk-audit*(8)
|
2020-05-04 12:24:58 +00:00
|
|
|
:< Audit system for changes
|
2020-01-06 21:23:24 +00:00
|
|
|
| *apk-stats*(8)
|
|
|
|
: Show statistics about repositories and installations
|
|
|
|
| *apk-version*(8)
|
|
|
|
: Compare package versions or perform tests on version strings
|
|
|
|
|
|
|
|
# GLOBAL OPTIONS
|
|
|
|
|
|
|
|
The following options are available for all commands.
|
|
|
|
|
|
|
|
*-f, --force*
|
|
|
|
Enable selected --force-\* options (deprecated).
|
|
|
|
|
|
|
|
*-i, --interactive*
|
|
|
|
Ask confirmation before performing certain operations.
|
|
|
|
|
2020-05-04 12:24:58 +00:00
|
|
|
*-p, --root* <_ROOT_>
|
|
|
|
Manage file system at _ROOT_.
|
2020-01-06 21:23:24 +00:00
|
|
|
|
|
|
|
*-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* <_REPO_>
|
2020-05-04 12:24:58 +00:00
|
|
|
Specify additional package repository. This option can be specified
|
|
|
|
multiple times.
|
2020-01-06 21:23:24 +00:00
|
|
|
|
|
|
|
*--allow-untrusted*
|
|
|
|
Install packages with untrusted signature or no signature.
|
|
|
|
|
|
|
|
*--arch* _ARCH_
|
|
|
|
Temporarily override architecture, to be combined with --root.
|
|
|
|
|
|
|
|
*--cache-dir* _CACHEDIR_
|
2020-05-04 12:24:58 +00:00
|
|
|
Temporarily override the cache directory. _CACHEDIR_ is treated relative
|
|
|
|
to the _ROOT_.
|
2020-01-06 21:23:24 +00:00
|
|
|
|
|
|
|
*--cache-max-age* _AGE_
|
2020-05-04 12:24:58 +00:00
|
|
|
Maximum AGE (in minutes) for index in cache before it's refreshed.
|
2020-01-06 21:23:24 +00:00
|
|
|
|
|
|
|
*--force-binary-stdout*
|
|
|
|
Continue even if binary data will be printed to the terminal.
|
|
|
|
|
|
|
|
*--force-broken-world*
|
|
|
|
Continue even if _world_ cannot be satisfied.
|
|
|
|
|
2021-12-09 17:17:42 +00:00
|
|
|
*--force-no-chroot*
|
|
|
|
Disable chroot for scripts. This can be used for rootfs creation when
|
|
|
|
chroot is not available. Scripts running outside a chroot environment
|
|
|
|
may modify and damage the host system.
|
|
|
|
|
2020-01-06 21:23:24 +00:00
|
|
|
*--force-non-repository*
|
2020-05-04 12:24:58 +00:00
|
|
|
Continue even if packages may be lost on reboot. This can happen when
|
|
|
|
running in run-from-tmpfs mode, and installing non-repository package.
|
2020-01-06 21:23:24 +00:00
|
|
|
|
|
|
|
*--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_
|
2020-05-04 12:24:58 +00:00
|
|
|
Override directory of trusted keys. This is treated relative to _ROOT_.
|
2020-01-06 21:23:24 +00:00
|
|
|
|
|
|
|
*--no-cache*
|
|
|
|
Do not use any local cache path.
|
|
|
|
|
|
|
|
*--no-network*
|
|
|
|
Do not use the network. The cache is still used when possible.
|
|
|
|
|
|
|
|
*--no-progress*
|
|
|
|
Disable progress bar even for TTYs.
|
|
|
|
|
2021-12-18 16:42:13 +00:00
|
|
|
*--preserve-env*
|
|
|
|
Pass user environment down to scripts.
|
|
|
|
|
2020-01-06 21:23:24 +00:00
|
|
|
*--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_
|
2020-10-03 12:38:35 +00:00
|
|
|
Override system repositories, see *apk-repositories*(8). Specifying this
|
2020-10-06 11:23:14 +00:00
|
|
|
option overrides the normal repositories file and repositories.d directory
|
|
|
|
processing. The given _REPOFILE_ is relative to the startup directory since
|
|
|
|
apk 2.12.0_rc2.
|
2020-01-06 21:23:24 +00:00
|
|
|
|
|
|
|
*--wait* _TIME_
|
|
|
|
Wait for TIME seconds to get an exclusive repository lock before
|
|
|
|
failing.
|
|
|
|
|
2020-01-25 15:43:18 +00:00
|
|
|
# COMMIT OPTIONS
|
|
|
|
|
|
|
|
The following options are available for all commands which commit the database.
|
|
|
|
|
|
|
|
*-s, --simulate*
|
|
|
|
Simulate the requested operation without making any changes.
|
|
|
|
|
|
|
|
*--clean-protected*
|
|
|
|
Do not create .apk-new files in configuration directories.
|
|
|
|
|
|
|
|
*--overlay-from-stdin*
|
2020-05-04 12:24:58 +00:00
|
|
|
Read list of overlay files from stdin. Normally this is used only during
|
|
|
|
initramfs when booting run-from-tmpfs installation.
|
2020-01-25 15:43:18 +00:00
|
|
|
|
|
|
|
*--no-scripts*
|
2020-05-04 12:24:58 +00:00
|
|
|
Do not execute any scripts. Useful for extracting a system image for
|
|
|
|
different architecture on alternative _ROOT_.
|
2020-01-25 15:43:18 +00:00
|
|
|
|
|
|
|
*--no-commit-hooks*
|
|
|
|
Skip pre/post hook scripts (but not other scripts).
|
|
|
|
|
|
|
|
*--initramfs-diskless-boot*
|
2020-05-04 12:24:58 +00:00
|
|
|
Used by initramfs when it's recreating root tmpfs. This enables selected
|
|
|
|
force options to minimize failure, and disables commit hooks, among
|
|
|
|
other features.
|
2020-01-25 15:43:18 +00:00
|
|
|
|
2020-01-06 21:23:24 +00:00
|
|
|
# NOTES
|
|
|
|
|
|
|
|
This apk has coffee making abilities.
|