650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/55/wKioL1X6iCGhIIqkAACNkbOZ8S8981.jpg "alt=" Wkiol1x6icghiiqkaacnkboz8s8981.jpg "height=" 98 "width=" 446 "/>
1. Delete the Yum source from Rhel
# Rpm-aq | grep Yum|xargs rpm-e--nodeps
2. Download the new Yum installation package
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-69.el6.centos.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
3, install the Yum package, note that the red must be installed together, there is a dependency
RPM-IVH yum-metadata-parser-1.1.2-16.el6.x86_64.rpm yum-3.2.29-69.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
4. Change to 163 yum source
# cd/etc/yum.repos.d/
# wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo
# ls
Centos6-base-163.repo
put the file inside the $releasever Replace all with the version number, which is 6
# sed-i ' s# $releasever #6#g ' Centos6-base-163.repo
5. Clear Yum Cache
# Yum Clean All
# yum Makecache # cache The package information on the server to a local , to improve the speed of searching and installing software
This article is from the "Shohai" blog, make sure to keep this source http://eveday.blog.51cto.com/10577430/1699599
Rhel 6.5 x86_64 configuration CentOS Yum Source