table of contents
apk-add(8) | System Manager's Manual | apk-add(8) |
NAME¶
apk add - add or update constraints to world and commit changes
SYNOPSIS¶
apk add [<options>...] constraints...
DESCRIPTION¶
apk add adds or updates given constraints to world (see apk-world(5)) and commit changes to disk. This usually involves installing new packages, but may also cause other changes to the installed packages.
To upgrade individual packages without modifying world use apk-fix(8).
By default apk tries to select a set of packages so that all constraints are satisfied. This means that some packages can be held back in an older version if there is direct or implicit dependencies to the older version.
OPTIONS¶
apk add supports the commit options described in apk(8), as well as the following options:
--initdb
-l, --latest
-u, --upgrade
-t, --virtual NAME
One can use this to ensure that selected set of packages are installed, and later the temporary modification be undone with apk-del(8) NAME without removing packages that were installed earlier.
--no-chown
2024-06-22 |