3

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.)

fkraiem
  • 12,813
Cristiana Nicolae
  • 4,570
  • 10
  • 32
  • 46

1 Answers1

0

Apt is the new frontend. More specifically apt offers the same more-or-less functionalities as apt-get, apt-cache etc in a single command. You can read more about the differencies and similarities here: https://itsfoss.com/apt-vs-apt-get-difference/

J.Snow
  • 44