Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution of prompting not registered error when RedHat uses yum command

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report