Linux Troubleshooting-centos7 Delete conflicting packages

Source: Internet
Author: User

Centos7 using Yum to install the software is very convenient, upgrade updates are also very strong, but sometimes after the upgrade package, also upgraded a lot of dependencies, when the other packages can be a conflict, resulting in later packages are not installed

Once, when installing Python-devel, it was found that the installation was not up, and was viewed, mainly python-devel and Python2 related package conflicts, as follows:

To solve this problem, you can do this in the following way
First install the Yum-utils kit
  
yum install yum-utils
Execute the Clean duplicate package
package-cleanup --cleandupes
The following is the command usage

Duplicate Package Options:--dupes             Scan for duplicates in your rpmdb--cleandupes        Scan for duplicates in your rpmdb and remove older--noscripts         disable rpm scriptlets from running when cleaning duplicates

Linux Troubleshooting-centos7 Delete conflicting packages

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.