The following problems occur when using the yum command on the RedHat system:
The reason "ThesystemisnotregisteredwithRHN" is that it is not registered on the RedHat network. The solution is to use the CentOS yum source.
1. View and uninstall the yum package installed by rhel by default.
[Root @ zhu1 ~] # Rpm-qa | grep yum
Yum-fastestmirror-1.1.16-14.el5.centos.1
Yum-updatesd-0.9-2.el5
Yum-metadata-parser-1.1.2-3.el5.centos
Yum-3.2.22-40.el5.centos
[Root @ zhu1 ~] # Rpm-qa | grep yum | xargs rpm-e -- nodeps
2. Download The centos yum package
[Root @ zhu1 ~] # Wget http://centos.ustc.edu.cn/centos/5/ OS /i386/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
[Root @ zhu1 ~] # Wget http://centos.ustc.edu.cn/centos/5/ OS /i386/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
[Root @ zhu1 ~] # Wget http://centos.ustc.edu.cn/centos/5/ OS /i386/CentOS/yum-metadata-parser-1.1.2-4.el5.i386.rpm
# Installation
[Root @ zhu1 ~] # Rpm-ivh yum -*
3. download the new yum source to the/etc/yum. repos. d/directory.
[Root @ zhu1 ~] # Wget
Redhat local yum source configuration
RedHat Linux local yum source configuration
RedHat 6.2 modify yum source in Linux use CentOS source for free