General replacement of 163yum Source, are the following operations:
Mv/etc/yum.repos.d/centos-base.repo/etc/yum.repos.d/centos-base.repo.old
cd/etc/yum.repos.d/
wget wget Spacer.gifhttp://mirrors.163.com/.help/centos6-base-163.repo
MV Centos6-base-163.repo Centos-base.repo
Yum Clean all & Yum Makecache
But in Yum Makecache error:http://mirrors.163.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno] Pycurl ERROR-"The requested URL Returned error:404 not Found "
Try another mirror. Error: Cannot retrieve repository metadata (Repomd.xml) for repository:base. Verify its path and try again
This is because you cannot access Http://mirrors.163.com/centos/6/os/x86_64/repodata/repomd.xml,repomd.xml in Http://mirrors.163.com/centos /6-6.5 no longer exists, you need to change the Centos-base.repo $releasever parameter in this file, and $releasever from the version value of Rpm-qi centos-release.
Centos6. X General value is 6, so error.
Corrective Exercise AS
VI Centos-base.repo
Replace releasever:1,s/$releasever/6.6/g
After the replacement, Yum Makecache is ready.
This article is from the "Boyhack" blog, make sure to keep this source http://461205160.blog.51cto.com/274918/1739813
Troubleshooting CentOS 6.6 Replacing Yum 163 source Error