2
0
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:
Igor Chubin 2017-06-04 11:30:07 +00:00
parent 4c468850cf
commit 5d7d17a494
2 changed files with 33 additions and 0 deletions

23
sheets/apk Normal file
View 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
View 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