package manager
apk is the tool used to install, upgrade, or delete software on a running sytem.
lbu is the tool used to capture the data necessary to restore a system to a previously configured state.
apk
- add Add new packages to the running system
- del Delete packages from the running system
- fix Attempt to repair or upgrade an installed package
- update Update the index of available packages
- info Prints information about installed or available packages
- search Search for packages or descriptions with wildcard patterns
- upgrade Upgrade the currently installed packages
add
在线安装1
apk add --no-cache pkgName
本地安装1
apk add --allow-untrusted /path/to/foo.apk
del
删除软件1
apk del pkgName1 pkgName2
update
更新包列表1
apk update
search
搜索软件1
apk search pkgName
列出可选的软件包列表1
apk search -v "package"