The reason is that your Linux is not registered on the Red Hat Network, so you cannot download the software package above. You can use CentOS as an alternative. The following describes how to use centos. uninstall rhel default installed yum package view yum package rpm-qa | grepyum uninstall rpm-qa | grepyum | xargsrpm-e-nodeps2. download the new yum package wgethttp: // centos.ustc.edu.cn/centos/5
The reason is that your Linux is not registered on the Red Hat Network, so you cannot download the software package above. You can use CentOS as an alternative.
The following describes how to use centos.
1. Uninstall the default yum package installed by rhel
View yum package
Rpm-qa | grep yum
Detach
Rpm-qa | grep yum | xargs rpm-e-nodeps
2. download the new yum package
Wget http://centos.ustc.edu.cn/centos/5/ OS /i386/CentOS/yum-3.2.22-26.el5.centos.noarch.rpm
Wget http://centos.ustc.edu.cn/centos/5/ OS /i386/CentOS/yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm
Wget http://centos.ustc.edu.cn/centos/5/ OS /i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
And install
Rpm-ivh yum -*
Note: yum and yum-fastestmirror are mutually dependent, so install them at the same time.
3. Download the configuration source of yum
Download the wget http://www.linuxidc.com/files/2011/05/06/CentOS-Base.repo to the/etc/yum. repos. d/directory
4. Run yum makecache to generate Cache