In RHEL6 1. uninstall yum # rpm-aq | grepyum | xargsrpm-e -- nodeps2, download the centos6 package # wgethttp: // uninstall
In RHEL6
1. uninstall yum
# Rpm-aq | grep yum | xargs rpm-e -- nodeps
2. download the centos6 package
# Wget http://mirrors.163.com/centos/6.0/ OS /x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
# Wget http://mirrors.163.com/centos/6.0/ OS /x86_64/Packages/yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm
# Wget http://mirrors.163.com/centos/6.0/ OS /x86_64/Packages/yum-3.2.27-14.el6.centos.noarch.rpm
# Wget http://mirrors.163.com/centos/6.0/ OS /x86_64/Packages/yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
3. Installation
# Rpm-ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
# Rpm-ivh yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm
# Rpm-ivh yum-3.2.27-14.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
4. copy the repo in centos6 to RHEL6
Centos6 # scp/etc/yum. repos. d/CentOS-Base.repo rhel6:/etc/yum. repos. d/CentOS-Base.repo
Rhel6 # vi/etc/yum. repos. d/CentOS-Base.repo
Edit:
: % S/$ releasever/6.0/
5. import the key of centos6
Centos6 # scp/media/CentOS/RPM-GPG-KEY-CentOS-6 rhel6:/tmp
Rhel6 # rpm -- import/tmp/RPM-GPG-KEY-CentOS-6
6. use
# Yum clean all
# Yum list
No error reported
Author: "Learning linux"