apt vs. apt-get

Started by dibl, 2015/11/30, 23:10:37

Previous topic - Next topic

dibl

For some days I have been playing with apt and apt-get -- I have been comparing the performance of
apt-get dist-upgrade


and


apt full-upgrade


Today there was a condition on one of my systems where there was a new package to be installed, a package removal, and multiple upgraded packages. Comparing the two methods, I got identical results.  This suggests to me that I can safely move to apt for upgrading my siduction systems.  Does anyone have information to the contrary?


Thanks.
System76 Oryx Pro, Intel Core i7-11800H, ASRock B860 Pro-A, Intel Core Ultra 7 265KF, Nvidia GTX-1060, SSD 990 EVO Plus.

melmarker

it's basicly the same - only nuances differ - there is no bash-completion for apt right now and there are some switches on by default - so on can assume roughly the same behaviour.

apt upgrade = apt-get upgrade --with-new-pkgs
apt dist-upgrade = apt-get dist-upgrade

both apt  with some fancy stuff
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. (Benjamin Franklin, November 11, 1755)
Never attribute to malice that which can be adequately explained by stupidity. (Hanlons razor)

horo

Quote from: melmarkerit's basicly the same - only nuances differ - there is no bash-completion for apt right now...

quick'n'dirty solution:
cp /usr/share/bash-completion/completions/apt-get /usr/share/bash-completion/completions/apt
In file /usr/share/bash-completion/completions/apt replace 2x apt-get and 2x apt_get with apt.

Ciao, Martin
omnia vincit pecunia :(

horo

Hi,

and if you like you can add the string "full-upgrade" to the file apt from my posting above. (You'll see where...)

Ciao, Martin
omnia vincit pecunia :(

devil

Apt 1.2, bound to hit Unstable tomorrow, has completion for apt. Also, using apt will from here on remove debs from /var/cache/apt/archives after the install is done (can be overriden). apt-get will keep debs, as it did up to now.


greetz
devil