The following error occurs when using the yum command in RHEL: ThissystemisnotregisteredwithRHN is because the system is not registered in Red Hat. The solution can be replaced by CentOS. The difference is that one is the commercial edition System and the other is the community maintenance edition system. 1. Check the installed yum # rpm-qa | grepyum uninstall yum # rpm-qa | grepyum | xargsrpm-e-
The following prompt appears when using the yum command in RHEL:
This system is not registered with RHN
The cause of the error is that the system is not registered in the red hat. The solution can be replaced by the CentOS software package. The difference is that one is the commercial edition System and the other is the community maintenance edition system.
1. view the installed yum
# Rpm-qa | grep yum
Uninstall yum
# Rpm-qa | grep yum | xargs rpm-e -- nodeps
2. Install CentOS yum package
# Wget http://centos.ustc.edu.cn/centos/5/ OS /i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
# Wget http://centos.ustc.edu.cn/centos/5/ OS /i386/CentOS/yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm
# Wget http://centos.ustc.edu.cn/centos/5/ OS /i386/CentOS/yum-3.2.22-37.el5.centos.noarch.rpm
# Rpm-ivh *. rpm
3. Download the update source and put it in the system directory.
# Wget http://www.linuxidc.com/files/2011/05/06/CentOS-Base.repo
# Mv CentOS_Base.repo/etc/yum. repos. d
4. Generate Cache
# Yum makecache