Is
apt update && apt full-upgrade equivalent to
apt-get update && apt-get dist-upgrade ?
Background:
You may activate a progressbar echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbarwhen using apt. This comes handy when you do a neverending, boresome d-u on an usb-stick, exept there is no progressbar when using a-g d-u.
Quote from: michaa7 on 2014/08/15, 15:30:23
Is
apt update && apt full-upgrade equivalent to
apt-get update && apt-get dist-upgrade ?
According to TFM, it would be "no":
Quote
[size=78%] [/size][/size] upgrade
upgrade is used to install the newest versions of all packages currently installed on the system from the
sources enumerated in /etc/apt/sources.list. New package will be installed, but existing package will never
removed.
full-upgrade
full-upgrade performs the function of upgrade but may also remove installed packages if that is required in
order to resolve a package conflict.
What it does
not do is install new packages released into your distribution, which d-u does for you.
Quote from: dibl on 2014/08/15, 16:22:14
...
What it does not do is install new packages released into your distribution, which d-u does for you.
Ok, thanks for pointing out the difference regarding new packages. It looks as apt were the dull version of apt-get.
Hallo michaa7,
"apt upgrade" equals "apt-get upgrade --with-new-pkgs".
With both commands you won't accidentally remove packages, though you still need full-upgrade or dist-upgrade to solve conflicts that require removal of packages.
Let me rephrase it: Upgrade may seem save, but without full-upgrade or dist-upgrade you will miss all updates that use "conflict" to replace unwanted old packages. If you continuously use "upgrade" then the number of missed updates will increase over time until the system breaks.
greetings
musca
Thanks for your additional hints.
There is no way to have a progressbar or *whatever* indication showing approximatly where the d-u has arrived using apt-get? Something like "<#x> of ${# of all packages} unpacked" or the like would be sufficient.
I thought there was an apt-??? package adding this functionality but when I googled today I only came accross the above mentioned setting which is working for pure apt only.
why not apt dist-upgrade?
You are right, seems to work (except currently d-u is generally broken), but it's not in "man apt".
there are other missing parts in apt - bash completion don't work aka not implemented, some documentation issues, but it will evolve.