apk upgrade is not executed
#1
Thu, 2017-10-26 15:27
bert.bouwers
-
- Offline
- 5 months 6 days ago
- 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
?
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 executingapk 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 doingapk 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).
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!