The solution of prompting not registered error when RedHat uses yum command
On redhat systems, when using the yum command, prompt:
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Unable to update.
Reason: redhat's default yum source needs to be registered before it can be updated. We think we can update it for free, and we need to replace redhat's yum source.
1. Check to see if the Yum package is installed
Check to see if yum is installed on RHEL, and if so, what yum packages are available:
[root@localhost ~] # rpm-qa | grep yumyum-metadata-parser-1.0-8.fc6yum-3.0.1-5.el5yum-rhn-plugin-0.4.3-1.el5yum-updatesd-3.0.1-5.el5
2 delete the yum package that comes with redhat
Uninstall all yum packages shown above:
[root@localhost ~] # rpm-qa | grep yum | xargs rpm-e-- nodeps (delete rpm package without checking for dependencies) and then use [root@localhost ~] # rpm-qa | grep yum [root@localhost ~] #
View, no message indicates that the uninstall is complete.
Take a look at the system version number and system digits
[root@localhost] # cat / etc/issue & & uname-a
3. Download the new yum package. Using the yum package of Centos6.5
# wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm