0

everyone. I am new to ubuntu. I was just wondering what is the diffrence between sudo apt-get update and sudo apt-get upgrade

r-m-n
  • 152
Abiral
  • 194
  • 1
  • 1
  • 10
  • Alsoe see http://askubuntu.com/questions/81585/what-is-dist-upgrade-and-why-does-it-upgrade-more-than-upgrade for the difference between upgrade and dist-upgrade. – Takkat Nov 05 '15 at 07:30

2 Answers2

0
sudo apt-get update

is command to update the repository (software source).

sudo apt-get upgrade

is command to upgrade all of your installed software.

adadion
  • 358
0

This is a Read The Manual type of question ( which you should be checking always always always before doing anything or before asking questions ) .

  • update is used to resynchronize the package index files ( find out what's new) , while 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 (ie install what's new)
  • update must always be ran before upgrade
  • The update lists go into /var/lib/apt/lists/ folder, and are commonly in *.list files. Upgrade backages are mostly *.deb files stored in /var/cache/apt/archives/ ( but manually installed packages go there also )
Sergiy Kolodyazhnyy
  • 105,154
  • 20
  • 279
  • 497