When running apt upgrade
I get a different list of "NEW packages" to be installed, compared to running apt-get upgrade
.
I read through some comparisons between as to what the difference between apt upgrade
and apt-get upgrade
may really be, but all of the articles describe them to do the same thing.
Here is what I am getting right now when running apt upgrade
:
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
linux-headers-5.4.0-47 linux-headers-5.4.0-47-generic linux-image-5.4.0-47-generic linux-modules-5.4.0-47-generic linux-modules-extra-5.4.0-47-generic motd-news-config
The following packages will be upgraded:
base-files linux-generic linux-headers-generic linux-headers-virtual linux-image-generic linux-image-virtual linux-virtual ubuntu-server
8 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 74.2 MB of archives.
After this operation, 360 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
And this is my output for apt-get upgrade
:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
base-files linux-generic linux-headers-generic linux-headers-virtual linux-image-generic linux-image-virtual linux-virtual ubuntu-server
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded
Ok, so there apt-get upgrade
decides that it's a good idea to hold back some packages, whereas apt upgrade
will happily install them. Can someone explain why this is and which upgrade
path I should use if I want the latest security updates to be installed?