Note: Red Hat's Yum service is required for registration, so it is recommended to uninstall and install the CentOS yum.
1. Remove Redhat from:rpm-qa | grep yum | xargs rpm-e--nodeps
2.Install the downloaded installation package
#rpm-ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
#rpm-ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
#rpm-ivh yum -3.2.29-40.el6.centos.noarch.rpm yum-plugin-fastestmirror -1.1.30-14.el6.noarch.rpm
Note: Install the above two need python-urlgrabber -3.9.1-11.el6.noarch.rpm, but installation python-urlgrabber-3.9.1-11.el6.noarch.rpm will be reported abnormal, so need to execute RPM-UVH python-urlgrabber-3.9.1-11.el6.noarch.rpm , and then
#rpm-ivh yum -3.2.29-40.EL6.CENTOS.NOARCH.RPM&NBSP, yum-plugin-fastestmirror -1.1.30-14.el6.noarch.rpm install these two packages, everything is OK.
3, into the cd/etc/yum.repos.d/, before the backup to the Yum source, download 163 or Ali of the Yum source
wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo
1) Vim Centos6-base-163.repo
2) Yum Clean all will error
You need to replace the Centos6-base-163.repo in :%s/$releasever/centos-6.x/g
3) Yum Makecache completed successfully.
Finally, attached to help me solve the problem of a netizen's blog, for everyone to learn the reference, hope also can help more small gang help, thank you. http://fengyuzaitu.blog.51cto.com/5218690/1384796
This article is from "Effort!" Struggle! "Blog, be sure to keep this provenance http://026mm.blog.51cto.com/8783374/1833290
Redhat system changed to Yum Source