linux:alpine_linux
Table of Contents
Alpine Linux
Useful commands
Upgrading Alpine
At times it is required to first upgrade just the Alpine Linux Package Manager itself to the latest available version, before upgrading any other package. This was the case, for example, when upgrading from a version of Alpine before 2.3.0_rc1. But simply always doing so shouldn't hurt, either:
apk add --upgrade apk-tools
Next, to upgrade all installed packages:
apk upgrade --available
Update package resposories
apk update
Show available package updates
apk upgrade -s
Upgrade all available package updates
apk upgrade
Show files of a package
apk info -qL PACKAGE
Or:
apk info -L PACKAGE
Show which package owns a file
apk info -qW FILE
Or:
apk info -W FILE
Reinstall all packages
apk info | xargs sudo apk fix
Alpine Tor Wifi AP
linux/alpine_linux.txt · Last modified: 2025-03-18 (external edit)