RHEL6 is installed on the server, the RHN service is not purchased, so the source of CentOS is used.
Before deleting Yum
Rpm-aq|grep Yum|xargs rpm-e--nodeps
The following packages need to be installed:
python-iniparse-0.3.1-2.1.el6.noarch.rpm
yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm
yum-3.2.27-14.el6.centos.noarch.rpm
yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
PS: Search the software package in Google Small method, the example below, direct search:
yum-3.2.27-14.el6.centos.noarch.rpm Intitle:index
Configure Yum configuration files after installation.
cd/etc/yum.repos.d/
wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo
Sed-i "s/$releasever/6/" Centos6-base-163.repo
The system is a mirror image of x86_64,163, please select the corresponding version according to your own Rhel version.
You can then install the software using Yum install.
If you still have an error, edit the Rhel-source.repo under/ETC/YUM.REPOS.D, set all enable to 0, or delete the Rhel-source.repo directly.