CentOS re-install Yum

Source: Internet
Author: User

1 , problem description

sometimes Yum is not available, and you can uninstall and reload it first.

2 , operating Procedures

(1), download python-iniparse-0.4-9.el7.noarch.rpm

(2), download yum-3.4.3-132.el7.centos.0.1.noarch.rpm

(3), download yum-metadata-parser-1.1.31-34.el7.x86_64.rpm

(4), download yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm

(5), install the downloaded RPM package

(6), download the configuration file Centos-base-sohu.repo

(7), modify the Centos-base-sohu.repo, change the $releasever to the CentOS version

Description

VI Centos-base-sohu.repo (edit file with vi command)

:%s/$releasever/7 (Execute above command in VI command mode)

(8), put the configuration file in the specified directory and delete the original configuration file

(9), clear cache yum Clean all

(10), configure get Yum list

3 , FAQs

(1), some FTP station denied access

(2), install a dependency on the Yum package needs to be installed at the same time

Note: If the above interdependent two RPM packages are installed separately, will be error, need to install at the same time.

CentOS re-install Yum

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.