how to upgrade a debian system

9:34 AM
Upgrading a Debian System


You want to upgrade all the packages on your system to the latest versions.


Make sure your /etc/apt/sources.list is pointing to your desired sources, then run apt-get upgrade.


Always update your package lists first:


# apt-get update




This command upgrades all installed packages, but does not remove any packages to resolve dependencies:


# apt-get -u upgrade






This upgrades all installed packages, and removes or installs packages as needed to satisfy all dependencies:


# apt-get -u dist-upgrade




The -u flag gives you a chance to review all changes first. The upgrade can take several hours, depending on the speed of your Internet connection, and how many packages need to be downloaded.

0 Comments