Home / Software / How to perform upgrades with apt

How to perform upgrades with apt

apt-get upgrade
Question: What is the difference between apt-get upgrade and apt-get dist-upgrade?

Answer: Apt-get upgrade is designed to update your Linux server packages to their latests versions. It will only upgrade the packages that are currently installed. Apt-get dist-upgrade will not only upgrade the current packages but will also install any new packages that may be needed or that were added to the distribution.

In a real-world situation, let’s say you have an Ubuntu server. Ubuntu releases updates, fixes, and security patches on a routine basis. To get those updates, you would run APT:

sudo apt-get upgrade

This would bring your server up to date with all patches and fixes, but you would still essentially have the same version of the distribution. On the other hand, every six months, they release a complete new version of the distribution that sometimes has new packages and new dependencies for packages. To do a complete in-box upgrade you would enter:

sudo apt-get dist-upgrade

Both are useful and needed, but for different reasons. Make sure you know which one you need before you try them.

Check Also

Server collocation

Server colocation

Server colocation is an incredible good choice for people as well as small businesses who …

Powered by Namesco
© Copyright InternetBlog.Org.Uk 2024, All Rights Reserved