I was wondering why upgrade
sometimes doesn't want to upgrade certain parts of the system, while dist-upgrade
does. Here's an example after running apt-get upgrade
:
apt-get upgrade
:
rimmer@rimmer-Lenovo-IdeaPad-S10-2:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
linux-generic linux-headers-generic linux-image-generic
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
versus apt-get dist-upgrade
:
rimmer@rimmer-Lenovo-IdeaPad-S10-2:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
linux-headers-3.0.0-13 linux-headers-3.0.0-13-generic
linux-image-3.0.0-13-generic
The following packages will be upgraded:
linux-generic linux-headers-generic linux-image-generic
3 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 48.5 MB of archives.
After this operation, 215 MB of additional disk space will be used.
Do you want to continue [Y/n]?
In other words, why can't this be performed by upgrade
?
full-upgrade
as an option toapt-get
under 14.04.1. – Brent Bradburn May 16 '15 at 02:34apt
either but it seems to be a completely diffrent command according to the man page he linked – BlueWizard Oct 20 '15 at 20:37apt
and not ofapt-get
... :-) Tryman apt
. – Hastur Oct 29 '15 at 09:47dist-upgrade
may remove packages which supposedlyupgrade
will never do. I have a pinned open sourcechromium-browser
package which an upgrade through the GUI software manager told me was going to get removed as "unneeded". I presume it'sdist-upgrade
under the hood that's trying to do that. – NeilG Aug 13 '22 at 06:13apt
command (notapt-get
) is actually resolving some of these problems. For instanceapt upgrade
will also install new packages if required. – Melroy van den Berg Apr 18 '23 at 00:34