System upgrade commands for Debian/ubuntu and CentOS

Source: Internet
Author: User

Prior to installing/configuring the system production environment, it is generally necessary to upgrade the existing system to ensure that the packages/components within the system are up to date, and that the upgrade commands for Debian/ubuntu and CentOS are different, as follows:

Debian/ubuntu, enter:

Apt-get Update

When the system is finished, enter:

Apt-get Upgrade

Wait for system operation to complete. This step, if you do not consider the dependencies between components within the system, and then upgrade them, change them to:

Apt-get Dist-upgrade

Wait for system operation to complete.

The difference between the specific Apt-get upgrade and the Apt-get Dist-upgrade is as follows:

Under the same system version, the Apt-get upgrade will only upgrade the package that satisfies the current dependency in the real system, without adding a reduction, and the difference between Apt-get Dist-upgrade is to fix the dependency on the dependencies and then upgrade That is, Apt-get Dist-upgrade will install or remove the necessary packages to satisfy the dependencies so that the packages that can be upgraded are upgraded. Under normal circumstances, Apt-get upgrade is sufficient.

CentOS, enter:

Yum Update

Wait for system operation to complete.

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.