It seems like this should be true but I wanted to make sure. Thanks!
Ubuntu – Is using Software Updater the same thing as running apt-get update and apt-get upgrade
aptupdate-manager
aptupdate-manager
It seems like this should be true but I wanted to make sure. Thanks!
Best Answer
Short answer
No, they are not the same.
apt-get upgrade
doesn't handle changing dependencies between versions, so if a package has changed dependencies, it wont be upgraded (it'll be "held back"). See the long answer for more details.Using the Software Updater and using
sudo apt-get update ; sudo apt-get dist-upgrade
(note thedist-
) would be almost equivalent, except that one's obviously a GUI and the other's a console application and also a few very minor informational differences.Long asnwer
From
man apt-get
,apt-get upgrade
:(emphasis by me)
This means that a newer version of a package which has a new dependency not required in the old version will not be upgraded with this method (unless the new dependency was already installed). These will be shown as "Held back".
apt-get dist-upgrade
:(emphasis by me)
This means that with this command instead of
upgrade
, packages with new (or removed) dependencies can by upgraded.Example
A good example of the difference between the two is when a new Linux kernel is released. This is packaged into the
linux-image-generic
package which always depends on the latest package of the Linux kernel. Because the dependencies oflinux-image-generic
change with each kernel upgrade,upgrade
wont upgrade it.