What is the difference between APTupgrade and dist-upgrade? E

Source: Internet
Author: User
What is the difference between APTupgrade and dist-upgrade? E -- Debian information of the Linux release technology. The following is a detailed description. Debian/Ubuntu Linux uses apt, Which is used during upgrade:

Apt-get update
Apt-get upgrade
Apt-get dist-upgrade

However, it is often asked what is the difference between upgrade and dist-upgrade. It seems that you have different interpretations of upgrade and dist-upgrade, and record your views here.

I think the difference between apt-get upgrade and dist-upgrade is as follows:

Upgrade: The system upgrades the existing Package. If there is a dependency problem, and this dependency requires the installation of other new packages or affects the dependency of other packages, this Package will not be upgraded and will be retained.

Dist-upgrade: It can intelligently solve dependency problems. If dependency problems exist, you need to install/remove a new Package and then try to install/remove it. (This is usually considered a risky upgrade)

Man apt-get:

Upgrade: upgrade is used to install the newest versions of all packages currently installed on the system from the sources enumerated in/etc/apt/sources. list. packages currently installed with new versions available are retrieved and upgraded; under no circumstances are currently installed packages removed, or packages not already installed retrieved and installed. new versions of currently installed packages that cannot be upgraded without changing the install status of another package will be left at their current version. an update must be specified med first so that apt-get knows that new versions of packages are available.
Dist-upgrade: dist-upgrade in addition to specify the function of upgrade, also intelligently handles changing dependencies with new versions of packages; apt-get has a "smart" conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.