Supernewb - upgrading packages

3 posts / 0 new
Last post
#1 Tue, 2017-10-24 20:04
sd.rasmussen65
  • sd.rasmussen65's picture
  • Offline
  • Last seen: 5 months 1 week ago
  • Joined: 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.

Tue, 2017-10-24 23:13
Head_on_a_Stick
  • Head_on_a_Stick's picture
  • Offline
  • Last seen: 1 week 1 day ago
  • Joined: 2016-05-01

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

Wed, 2017-10-25 01:19
ReproducibleBui...
  • ReproducibleBuildsAreAGoodStandard's picture
  • Offline
  • Last seen: 1 month 3 weeks ago
  • Joined: 2017-05-05

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!

Log in or register to post comments