RHEL 更改为163镜像源

下载CentOS yum

# cd /usr/local/src
# 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-40.el6.centos.noarch.rpm
# wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm

安装

# rpm -ivh yum-*

下载网易CentOS镜像源

# cd /etc/yum.repos.d/
# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

修改配置

# vim CentOS6-Base-163.repo

把文件里面的$releasever全部替换为目前最新的版本号,即6.5最后保存!