apk upgrade is not executed

3 posts / 0 new
Last post
#1 Thu, 2017-10-26 15:27
bert.bouwers
  • bert.bouwers's picture
  • Offline
  • Last seen: 5 months 6 days ago
  • Joined: 2017-10-25

I have installed and configured a disk-based Alpine Linux release 3.6.2 running on VMWare Fusion. Internet access is available and apk update seems to work ok. However, when executing apk upgrade the number of megabytes and packages to upgrade are shown, but they seem not be installed:

localhost:~# apk update
fetch <a href="http://dl-4.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
v3.6.2-191-gf98d79930f" rel="nofollow">http://dl-4.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
v3.6.2-191-gf98d79930f</a> [<a href="http://dl-4.alpinelinux.org/alpine/v3.6/main" rel="nofollow">http://dl-4.alpinelinux.org/alpine/v3.6/main</a>]
OK: 5553 distinct packages available
localhost:~# apk upgrade
OK: 98 MiB in 39 packages
localhost:~# apk upgrade
OK: 98 MiB in 39 packages

How do I ensure that the packages are installed, and no more packages are shown the next time when executing apk upgrade?

Fri, 2017-10-27 05:39
ReproducibleBui...
  • ReproducibleBuildsAreAGoodStandard's picture
  • Offline
  • Last seen: 1 month 3 weeks ago
  • Joined: 2017-05-05

Your upgrade seems to have executed ok; I think that there would have been an 'ERROR' message to do an 'apk update' if there was no internet connection in your VM (virtual machine). Maybe I misunderstood your points about upgrading, but there is no evident need to check that any packages are installed when apk update returns 'OK' as part of its answer nor is there any need to change anything so that any packages are shown when next executing apk upgrade. Because of the 'OK' as a response to both those commands, your whole system is signalled to be up-to-date with respect to the repository(-ies) that you have enabled and with respect to any package(s) and the dependencies that it/they pulled that were installed exceptionally from a repository that was not enabled by default but which you had 'pinned' in case you wanted apk to look into certain additional 'pinned' repositories (for example, if you installed a package by doing apk add somePackageOnlyInEdgeRepo@edge). Note that you only have one repo (the main one) enabled.

(Note re readability of urls in this forum: currently, unfortunately, when pasting an url as part of code, as in the case for the entry above, a simple url might display other code as shown above: 'a href="http', 'rel="nofollow"', etc. due to the current wiki design).

Fri, 2017-10-27 10:24
bert.bouwers
  • bert.bouwers's picture
  • Offline
  • Last seen: 5 months 6 days ago
  • Joined: 2017-10-25

Understood. The numbers are not about pending upgrades, but on the size and number of installed packages! Coming from Ubuntu, I am used to lots of upgrades that need to be installed to keep the system secure, but this seems to be different for Alpine Linux!

Log in or register to post comments