Commands to update Ubuntu apt-get update or apt update without get? [closed]

3

In the company we received the instruction to run the following commands every morning, but the current project manager did not know to answer the reason and in the search in the internet did not get a good answer.

sudo apt-get update
sudo apt update
sudo apt-get upgrade
sudo apt upgrade

Another detail that caught my eye is that it does not have a sequence to run, it will suit the developer.

The machine is used to develop front-end but the lines that are updating with the commands do not see anything of npm , gulp , bower or php , which are the applications we use, so what the impact of running these commands.

    
asked by anonymous 31.10.2017 / 19:50

2 answers

5

The apt-get update command updates the list of packages and programs that can be installed on the machine.

The apt-get upgrade command updates the system and downloads and installs updates to the machine's packages and programs.

I do not know if it is necessary to run the 2 every day, since it is unlikely that you have programs that receive updates every day.

    
31.10.2017 / 20:06
3

the command:

sudo apt update

It is an "update" of the command:

sudo apt-get update

No longer need to type "-get".

You can just run the command:

sudo apt update && sudo apt upgrade

So you do not have to wait for a response from one command to execute the other.

    
07.11.2017 / 13:40