2020-03-10 17:36:31 +00:00
|
|
|
# apk
|
|
|
|
# Package management software for use in Alpine Linux
|
2017-06-04 11:30:07 +00:00
|
|
|
|
2020-03-10 17:36:31 +00:00
|
|
|
# Install a package, or upgrade an existing one.
|
|
|
|
apk add [PKG]
|
2017-06-04 11:30:07 +00:00
|
|
|
|
|
|
|
# Remove a package
|
2020-03-10 17:36:31 +00:00
|
|
|
apk del [PKG]
|
2017-06-04 11:30:07 +00:00
|
|
|
|
2020-03-10 17:36:31 +00:00
|
|
|
# Update index of available packages.
|
2017-06-04 11:30:07 +00:00
|
|
|
apk update
|
|
|
|
|
2020-03-10 17:36:31 +00:00
|
|
|
# Upgrade all installed packages.
|
2017-06-04 11:30:07 +00:00
|
|
|
apk upgrade
|
|
|
|
|
2020-03-10 17:36:31 +00:00
|
|
|
# Find package, using glob pattern matching.
|
|
|
|
apk search [PKG]
|
2017-06-04 11:30:07 +00:00
|
|
|
|
2020-03-10 17:36:31 +00:00
|
|
|
# List all installed packages.
|
2017-06-04 11:30:07 +00:00
|
|
|
apk info
|
|
|
|
|
2020-03-10 17:36:31 +00:00
|
|
|
# Determine to which package a file belongs, akin to `dpkg -S [PATH]` in
|
|
|
|
# Debian- and Ubuntu-based distributions of Linux.
|
|
|
|
apk info --who-owns [PATH]
|