配置RHEL6使用CentOS6的yum源
在服务器上安装了RHEL6,没有购买RHN服务,所以使用CentOS的源。
Shell代码
rpm-aq|grepyum|xargsrpm-e--nodeps
rpm-ivhhttp://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
rpm-ivhhttp://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm
rpm-ivhhttp://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.27-14.el6.centos.noarch.rpmhttp://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
cd/etc/yum.repos.d/
wgethttp://mirrors.163.com/.help/CentOS6-Base-163.repo
sed-i"s/\$releasever/6/"CentOS6-Base-163.repo
我使用的是x84_64,163的镜像,请根据你自己的RHEL版本选择对应的版本