How should I update my Debian

Update Debian with apt-get

This tutorial describes how to update Debian using the apt-get Command. To get Debian with the aptitude To update the command, see this tutorial. apt-get has 2 advantages over aptitude:

  1. It is usually several seconds faster per package, which is particularly advantageous if there are many packages.
  2. aptitude relies on apt on in that apt-get is already included, so if you want to have an absolute minimum system, there is no way around apt-get around.

To with apt-get to update the system, you always need root rights (admin). After switching to the root, the first thing to do is:

apt-get update

a. This will download an up-to-date list of all available Debian packages. Among other things, this list contains the current version number of all available programs, which are updated by the Debian developers whenever, for example, security holes have been removed or functions have been added. The sources from which Debian gets the current list is in the sources.list (/ etc / apt) specified. apt-get update should be carried out before every program installation / deinstallation or system update.

To then update the programs, use the command:

apt-get upgrade

The currently installed versions of the programs are compared with the version numbers of the package list and updated if necessary. Existing packages will not be deleted and no new ones will be installed.

If you want to switch to a new Debian version, you have to use the command:

apt-get dist-upgrade

use. Here, however, in contrast to apt-get upgrade, also installed new packages or uninstalled existing ones. apt-get dist-upgrade can also be used to convert from stable on testing or unstablee to switch.