What is the difference between the command line sudo apt-get update
and the command line sudo apt update
?
Although I've been using only Ubuntu and Ubuntu-based distros in the last several years, I still consider myself an entry-level user when it comes about command lines and Terminal-related stuff. I mention this aspect because I need a novice-friendly explanation.
A bit of background info: on a regular basis I run the commands sudo apt-get update
and sudo apt-get upgrade
in my Terminal. And I also know that it is recommended to do so before installing any app, in order to avoid any errors.
But today I have decided to install snapd on my Ubuntu 14.04 system, and I noticed that, on their webpage there are mentioned these two lines:
sudo apt update
sudo apt install snapd
And this is why I am puzzled. (By the way, these lines work fine in my case.)
apt
is there in 14.04 as well: http://manpages.ubuntu.com/manpages/trusty/en/man8/apt.8.html but I don't know if it has the features available in later versions of Ubuntu. – DK Bose Sep 09 '18 at 12:17apt-get
installed for when you need those features.sudo apt-get dist-upgrade
is nowsudo apt full-upgrade
, but dist-upgrade still works inapt
(even if not inman apt
; maybe it'll go whenapt-get
is finally depreciated? (if that ever happens)) – guiverc Sep 09 '18 at 12:36apt install
doesn't retain debs in/var/cache/apt
whereasapt-get install
does by default. – DK Bose Sep 09 '18 at 12:53