PDA

View Full Version : [all variants] question on these commands



iam_newhere
April 21st, 2009, 01:58 AM
what does sudo apt-get update do?

and what does sudo apt-get upgrade do?

thanks for your information!

PacSci
April 21st, 2009, 02:06 AM
sudo apt-get update refreshes the package cache - the list kept on your system of all the packages available for download.

sudo apt-get upgrade will upgrade all the packages to the latest version, or just some of them if you specify names on the command line.

iam_newhere
April 21st, 2009, 02:10 AM
sudo apt-get update refreshes the package cache - the list kept on your system of all the packages available for download.

sudo apt-get upgrade will upgrade all the packages to the latest version, or just some of them if you specify names on the command line.

if i do a sudo apt-get upgrade, will the upgrades installed be stable?

boblemur
April 21st, 2009, 02:13 AM
yes they will be,


they are the official updates, they are the same as the update manager.


good practice is to use.


sudo aptitude update
sudo aptitude dist-upgrade


as aptitude is almost the same as apt-get although its smarter and should be used instead of apt-get.

dist-upgrade as apposed to upgrade will upgrade dependencies as well. (which basicly means its smarter than just upgrade)

iam_newhere
April 21st, 2009, 02:19 AM
yes they will be,


they are the official updates, they are the same as the update manager.


good practice is to use.


sudo aptitude update
sudo aptitude dist-upgrade


as aptitude is almost the same as apt-get although its smarter and should be used instead of apt-get.

dist-upgrade as apposed to upgrade will upgrade dependencies as well. (which basicly means its smarter than just upgrade)

thanks a lot!:popcorn: