PDA

View Full Version : [ubuntu] Update, Upgrade and/or Dist Upgrade



NathanAdler
January 18th, 2010, 05:58 PM
Hi all,

Thanks beforehand for your support. I am begining on Ubuntu Server Management

I would like to receive your help on this doubt... In order to have my Ubuntu Server up to date and with the last security patches, is it enough to do:

sudo apt-get update
sudo apt-get upgrade

?

If not, please where I can find an easy guide in order to keep or mantain my server OK?

Also, what are the risks when we do: sudo apt-get dist-upgrade?

Thank you very much again.


Nathan.

phillw
January 18th, 2010, 07:15 PM
Hi Nathan, welcome to the forums.


Update the Package Index: The APT package index is essentially a database of available packages from the repositories defined in the /etc/apt/sources.list file. To update the local package index with the latest changes made in repositories, type the following:

sudo apt-get update
Upgrade Packages: Over time, updated versions of packages currently installed on your computer may become available from the package repositories (for example security updates). To upgrade your system, first update your package index as outlined above, and then type:
sudo apt-get upgrade


apt-get dist-upgrade
This command installs up-to-date version of packages, and may install additional packages.

Or, put another way ..

dist-upgrade, in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages"



So, it would be update, then the dist-upgrade to keep up to date

Hope that clarifies it for you.

Regards,

Phill.

phillw
January 18th, 2010, 07:44 PM
OOps - double post ..

NathanAdler
January 18th, 2010, 08:20 PM
Thank you Phill.




Hi Nathan, welcome to the forums.



So, it would be update, then the dist-upgrade to keep up to date

Hope that clarifies it for you.

Regards,

Phill.