Solution to YUM failure in RHEL

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.