Forrest logo
back to the apt-get tool

apt-get:tldr:01ee6

apt-get: Upgrade installed packages (like `upgrade`), but remove obsolete packages and install additional packages to meet new dependencies.
$ apt-get dist-upgrade
try on your machine

The apt-get dist-upgrade command is used in Linux-based systems, like Ubuntu, to upgrade the entire distribution to a new release. It upgrades the installed packages to their newer versions and handles dependencies between the packages.

Here's a breakdown of the command:

  • apt-get: This is the package handling utility. It is used to manage software packages in Debian-based distributions.

  • dist-upgrade: It is a variation of the upgrade command. While upgrade only installs newer versions of packages that are already installed, dist-upgrade goes a step further. It intelligently handles dependencies and modifies or removes packages if necessary to upgrade the distribution to a new version.

When you run apt-get dist-upgrade, the package manager fetches the updated package information from configured repositories and determines the newer versions of the installed packages. It then installs the updated packages along with any new packages required by them.

Note that the dist-upgrade command is more aggressive than the usual upgrade command. It can remove packages or install new ones to satisfy the dependencies. Therefore, it is recommended to review the package changes and confirm the modifications before proceeding with the upgrade.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the apt-get tool