Difference between apt-getupgarde and dist-upgrade

Source: Internet
Author: User
The difference between apt-getupgarde and dist-upgrade is that Debian/UbuntuLinux both use apt and are upgraded at www.2cto. comapt-getupdateapt-getupgradeapt-getdist-upgrade, but some people often ask, what is the difference between upgrade and dist-upgrade... the difference between apt-get upgarde and dist-upgrade is that apt is used in Debian/Ubuntu Linux and is used in the upgrade: www.2cto.com apt-get update apt-get upgrade apt-get dist-upgrade, but some people often ask, what is the difference between upgrade and dist-upgrade? check carefully, it seems that everyone's explanation of upgrade and dist-upgrade
They are a little different, and I will record my views here. I think the difference between apt-get upgrade and dist-upgrade is: www.2cto.com upgrade: the system upgrades the existing Package. if there is a dependency problem, this dependency requires the installation of other new
If the Package is dependent on other packages, the 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,
We will try to install/remove it. (this is usually considered a risky upgrade) apt-get upgrade and apt-get dist-upgrade are essentially no different. However, dist-upgrade identifies and handles dependency changes, while upgrade does not. For example, software package a was originally dependent on B c d, but may have been upgraded in the source. Currently, a is dependent on B c e. In this case, dist-upgrade will delete d installation e and upgrade software package.
Software Package a is rejected because the dependency changes. Explanation of www.2cto.com man apt-get: 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 That which didn't kill me makes me stronger
 
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.