Siduction Forum

Siduction Forum => Software - Support => Topic started by: michaa7 on 2014/08/15, 15:30:23

Title: apt vs. apt-get
Post by: michaa7 on 2014/08/15, 15:30:23
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.
Title: Re: apt vs. apt-get
Post by: dibl on 2014/08/15, 16:22:14
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.
Title: Re: apt vs. apt-get
Post by: michaa7 on 2014/08/15, 16:38:45
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.
Title: Re: apt vs. apt-get
Post by: musca on 2014/08/15, 17:55:47
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
Title: Re: apt vs. apt-get
Post by: michaa7 on 2014/08/15, 18:13:22
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.
Title: Re: apt vs. apt-get
Post by: melmarker on 2014/08/15, 20:12:51
why not apt dist-upgrade?
Title: Re: apt vs. apt-get
Post by: michaa7 on 2014/08/15, 20:17:00
You are right, seems to work (except currently d-u is generally broken), but it's not in "man apt".
Title: Re: apt vs. apt-get
Post by: melmarker on 2014/08/15, 21:06:27
there are other missing parts in apt - bash completion don't work aka not implemented, some documentation issues, but it will evolve.