mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-15 06:12:59 +00:00
added apk and setup-apkcache
This commit is contained in:
parent
4c468850cf
commit
5d7d17a494
23
sheets/apk
Normal file
23
sheets/apk
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# apk is the tool used to install, upgrade, or delete software on a running sytem
|
||||||
|
# of Alpine Linux package management
|
||||||
|
|
||||||
|
# Install a package
|
||||||
|
apk add $package
|
||||||
|
|
||||||
|
# Remove a package
|
||||||
|
apk del $package
|
||||||
|
|
||||||
|
# Update repos
|
||||||
|
apk update
|
||||||
|
|
||||||
|
# Upgrade all packages
|
||||||
|
apk upgrade
|
||||||
|
|
||||||
|
# Find a package
|
||||||
|
apk search $package
|
||||||
|
|
||||||
|
# To list all installed packages, use:
|
||||||
|
apk info
|
||||||
|
|
||||||
|
# To determine which package a file belongs to:
|
||||||
|
apk info --who-owns /sbin/lbu
|
10
sheets/setup-apkcache
Normal file
10
sheets/setup-apkcache
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# apk is the tool used to install, upgrade, or delete software on a running sytem
|
||||||
|
# of Alpine Linux package management
|
||||||
|
|
||||||
|
# To enable local APK cache run
|
||||||
|
setup-apkcache
|
||||||
|
|
||||||
|
# If you've installed Alpine to your hard drive (as 'sys'),
|
||||||
|
# then create a cache dir and then an /etc/apk/cache symlink pointing to that dir:
|
||||||
|
mkdir -p /var/cache/apk
|
||||||
|
ln -s /var/cache/apk /etc/apk/cache
|
Loading…
Reference in New Issue
Block a user