删除redhat自带的yum源
rpm -aq | grep yum|xargs rpm -e --nodeps
下载新的yum安装包
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/yum-3.2.29-69.el6.centos.noarch.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
三个文件放在一个新的目录下直接rpm -ivh *
下载163的源
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
放到/etc/yum.repo
vim CentOS6-Base-163.repo
将$releasever全部替换为版本号,即6 最后保存
yum clean all
yum makecache
参考http://qingwang.blog.51cto.com/505009/1551228/