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