Supernewb - upgrading packages
#1
Tue, 2017-10-24 20:04
sd.rasmussen65
-
- Offline
- 5 months 1 week ago
- 2017-10-24
I am a supernewb to alpine, and it is a little different than the other distros I've used in the past. I am attempting to upgrade all upgradeable packages. I did "apk upgrade" and it returns the following: "OK: 62 MiB in 46 packages". However, now what? It appears that it is telling me there are 46 packages which COULD be upgraded. Is there the equivalent of an "upgrade all" command which will do all without having to do each package individually? Sorry for what is likely such an elementary question, but I cannot find the answer, at least not yet. Thanks in advance.
Use this to update the package database:
# apk update
And then this to upgrade your packages:
# apk upgrade
More here: https://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management
Note also that the 46 packages that you have installed are up-to-date, as apk upgrade reports them to be 'OK'. If you have used Linux before, you may have guessed that the helpful guidance given above to update and upgrade packages can also be done not as 'root', but using sudo instead, provided that your user has sudo rights:
$ sudo apk update && sudo apk upgrade
Hopefully this helps all new users!