Because LinuxRHEL5 is not registered, yum cannot be used, you can use the yum of CentOS to solve this problem. First, uninstall the yum of the system. 1. Delete the yumrpm-qa | grepyum | xargsrpm-e-nodeps from the RedHat5. 2. install or download from the official CentOS 5.4 CD. download wgethttp: // mirrors.163.com/centos/5.4/ OS /x86_64/C
In Linux RHEL 5, yum cannot be used because it is not registered. You can use CentOS yum to solve this problem.
First, uninstall the system's yum
1. Delete the yum that comes with RedHat 5
Rpm-qa | grep yum | xargs rpm-e-nodeps
Ii. install or download from the CentOS 5.4 CD
Wget http://mirrors.163.com/centos/5.4/ OS /x86_64/CentOS/yum-3.2.22-20.el5.centos.noarch.rpm
Wget http://mirrors.163.com/centos/5.4/ OS /x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
Wget http://mirrors.163.com/centos/5.4/ OS /x86_64/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
Wget http://mirrors.163.com/centos/5.4/ OS /x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm
Wget http://mirrors.163.com/centos/5.4/ OS /x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
Wget http://mirrors.163.com/centos/5.4/ OS /x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm
Wget http://mirrors.163.com/centos/5.4/ OS /x86_64/CentOS/rpm-python-4.4.2.3-18.el5.x86_64.rpm
Wget http://mirrors.163.com/centos/5.4/ OS /x86_64/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpm
Wget http://mirrors.163.com/centos/5.4/ OS /x86_64/CentOS/m2crypto-0.16-6.el5.6.x86_64.rpm
Rpm-ivh m2crypto-0.16-6.el5.6.x86_64.rpm
Rpm-ivh python -*
Rpm-ivh rpm-python
Rpm-ivh yum -*
Install
3. Download configurations
Cd/etc/yum. repos. d/
Wget http://www.linuxidc.com/system/systemfiles/2010/8/CentOS-Base.repo