Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a VPS with Ubuntu Server 12.04 and I want maximal stability of my server, which's main purpose is a webserver.

What are difference between Update and Upgrade? I can't understand difference. As I understand Upgrade is upgrading version of package of some software product and if this upgraded software have, for example, some API change and my code can become incompatible with that update I will run into problems. But since this is only small version change compared to big version change using dist-upgrade most times those upgrades will be compatible with my code. Do I understand it right?

Second small question is sudo apt-get update is the same as if I run sudo aptitude and install all Security updates? I love aptitude, it is something like Windows Updates, that's why I choose Ubuntu Server.

share|improve this question
man apt-get is a useful resource to read - really. – Iain Dec 10 '13 at 13:23
@lain has an elegant way of saying rtm. – BigHomie Dec 10 '13 at 13:38
For the record, most Linux distribution have package management software as powerful as apt|aptitude. Not only "Ubuntu server" – mveroone Dec 10 '13 at 13:42


apt-get update will update your local copies of your repositories' package data, such as available versions and dependencies.

  • This is needed to check whether any updates are present.
  • It doesn't actually upgrade packages.

apt-get upgrade and apt-get dist-upgrade will upgrade packages.

  • The former runs general system upgrades
  • The latter will apply higher level patches such as kernel upgrades.
  • Check this link for a detailed look into upgrade vs dist-upgrade

For a detailed discussion of aptitude vs apt-get, read this AskUbuntu post.

share|improve this answer
One important note is that dist-upgrade will put your system in sync with the latest available versions of packages for the distribution you've selected, which means that it can downgrade packages in some cases. – Michael Hampton Dec 10 '13 at 16:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.