apk(8) System Manager’s Manual apk(8) NAME apk ‐ Alpine Package Keeper SYNOPSIS apk [...] command [...] DESCRIPTION apk manages packages installed on the system. The set of top level packages to install is called the world (see apk‐world(5)). apk sup‐ ports various sub‐commands to query and manipulate world and local & remote package repositories. COMMANDS Each command is documented in detail on its manual page. PACKAGE INSTALLATION AND REMOVAL l lx l lx. T{ apk‐add(8) T} T{ Add packages to world and commit changes T} T{ apk‐del(8) T} T{ Remove packages from world and commit changes T} SYSTEM MAINTENANCE l lx l lx l lx l lx. T{ apk‐fix(8) T} T{ Fix, reinstall or upgrade packages without modifying world T} T{ apk‐update(8) T} T{ Update repository indexes T} T{ apk‐upgrade(8) T} T{ Install upgrades avail‐ able from repositories T} T{ apk‐cache(8) T} T{ Manage the local package cache T} QUERYING PACKAGE INFORMATION l lx l lx l lx l lx l lx. T{ apk‐info(8) T} T{ Give detailed infor‐ mation about packages or repositories T} T{ apk‐list(8) T} T{ List packages matching a pattern or other criteria T} T{ apk‐dot(8) T} T{ Render dependencies as graphviz graphs T} T{ apk‐policy(8) T} T{ Show repository policy for packages T} T{ apk‐search(8) T} T{ Search for packages by name or description T} REPOSITORY MAINTENANCE l lx l lx l lx l lx. T{ apk‐index(8) T} T{ Create repository index file from packages T} T{ apk‐fetch(8) T} T{ Download packages from repositories to a local directory T} T{ apk‐manifest(8) T} T{ Show checksums of package contents T} T{ apk‐verify(8) T} T{ Verify pack‐ age integrity and signature T} MISCELLANEOUS l lx l lx l lx. T{ apk‐audit(8) T} T{ Audit system for changes T} T{ apk‐stats(8) T} T{ Show statistics about repositories and installa‐ tions T} T{ apk‐version(8) T} T{ Compare package versions or perform tests on version strings T} 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. Interactive mode can be made the default when running on a tty, by creating /etc/apk/interactive as an empty file. ‐p, ‐‐root 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 REPO Specify additional package repository. This option can be specified multiple times. ‐‐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. CACHEDIR is treated rela‐ tive to the ROOT. ‐‐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‐missing‐repositories Continue even if some of the repository indexes are not available. ‐‐force‐non‐repository Continue even if packages may be lost on reboot. This can happen when running in run‐from‐tmpfs mode, and installing non‐repository package. ‐‐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. This is treated relative to ROOT. ‐‐no‐cache Do not use any local cache path. ‐‐no‐check‐certificate Do not validate the HTTPS server certificates. ‐‐no‐interactive Disable interactive mode. ‐‐no‐network Do not use the network. The cache is still used when possible. ‐‐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 Purge modified configuration and cached packages. Enables deletion of modified configuration files on package removal. On cache clean action this enables deletion of unneeded cached packages (unin‐ stalled packages on tmpfs installations or all packages on disk in‐ stallations). ‐‐repositories‐file REPOFILE Override system repositories, see apk‐repositories(8). Specifying this option overrides the normal repositories file and reposito‐ ries.d directory processing. The given REPOFILE is relative to the startup directory since apk 2.12.0_rc2. ‐‐timeout TIME Timeout network connections if no progress is made in TIME seconds. The default is 60 seconds. ‐‐wait TIME Wait for TIME seconds to get an exclusive repository lock before failing. COMMIT OPTIONS The following options are available for all commands which commit the database. ‐s, ‐‐simulate Simulate the requested operation without making any changes. The database is opened in read only mode, and auto‐updating of indexes is disabled. You may want to run "apk update" before running a sim‐ ulation to make sure it is done with up‐to‐date repository indexes. ‐‐clean‐protected Do not create .apk‐new files in configuration directories. ‐‐overlay‐from‐stdin Read list of overlay files from stdin. Normally this is used only during initramfs when booting run‐from‐tmpfs installation. ‐‐no‐scripts Do not execute any scripts. Useful for extracting a system image for different architecture on alternative ROOT. ‐‐no‐commit‐hooks Skip pre/post hook scripts (but not other scripts). ‐‐initramfs‐diskless‐boot Used by initramfs when it’s recreating root tmpfs. This enables se‐ lected force options to minimize failure, and disables commit hooks, among other features. SOURCE OPTIONS The following options are available for all commands which operate on the package indexes only. ‐‐from FROMSPEC Search packages from: system (all system sources), repositories (exclude installed database), installed (exclude normal reposito‐ ries) or none (commandline repositories only). NOTES This apk has coffee making abilities. 2023‐11‐30 apk(8)