everyone. I am new to ubuntu. I was just wondering what is the diffrence between sudo apt-get update
and sudo apt-get upgrade
Asked
Active
Viewed 109 times
0
2 Answers
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
upgrade
anddist-upgrade
. – Takkat Nov 05 '15 at 07:30