RHEL7的YUM源替换成CentOS

  • A+
所属分类:运维教程

刚装的RHEL7使用命令yum update升级时会提示This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

这是因为系统自带的YUM需要注册才能使用,我们可以将其替换成CentOS的YUM源。

删除自带YUM包

命令如下:

rpm -qa | grep yum | xargs rpm -e --nodeps
rpm -qa | grep python-urlgrabber | xargs rpm -e --nodeps

效果如下:
RHEL7的YUM源替换成CentOS

下载CentOS的YUM包

命令如下:

此处为隐藏的内容!
登录后方可查看!

效果如下:

RHEL7的YUM源替换成CentOS

安装CentOS的YUM包

命令如下:

rpm -ivh yum-metadata-parser-1.1.4-10.el7.x86_64.rpm yum-3.4.3-154.el7.centos.noarch.rpm yum-plugin-fastestmirror-1.1.31-42.el7.noarch.rpm yum-utils-1.1.31-42.el7.noarch.rpm python-urlgrabber-3.10-8.el7.noarch.rpm  --nodeps

效果如下:

RHEL7的YUM源替换成CentOS

更换CentOS的YUM源

命令如下:

vim /etc/yum.repos.d/birdteam.repo

代码如下:

此处为隐藏的内容!
登录后方可查看!

效果如下:

RHEL7的YUM源替换成CentOS

调用新的YUM源

代码如下:

yum clean all

效果如下:

RHEL7的YUM源替换成CentOS

测试新的YUM源

代码如下:

yum list

效果如下:

RHEL7的YUM源替换成CentOS

  • 问答中心
  • 微信小程序扫一扫
  • weinxin
  • 微信公众
  • 微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:37   其中:访客  37   博主  0

    • avatar holiday weather

      Excellent web site you have here.. It’s difficult to find excellent writing like yours these days. I honestly appreciate people like you! Take care!!

      • avatar Web Design Company

        Leading Digital Marketing agency in India and Kolkata, Leading Web Design company. Providing web designing and Digital marketing services, Digital marketing course, and certification with an internship.

        • avatar buy mens fitness shirts UK

          An impressive share, I just given this onto a colleague who was doing a little analysis on this. And he in fact bought me breakfast because I found it for him.. smile. So let me reword that: Thnx for the treat! But yeah Thnkx for spending the time to discuss this, I feel strongly about it and love reading more on this topic. If possible, as you become expertise, would you mind updating your blog with more details? It is highly helpful for me. Big thumb up for this blog post!

          • avatar Investments

            I’d like to thank you for the efforts you have put in writing this website. I’m hoping to check out the same high-grade blog posts from you later on as well. In fact, your creative writing abilities has inspired me to get my own, personal website now ;)

            • avatar acouBre

              cialis one a day review Suffimecic [url=https://ascialis.com/#]Cialis[/url] peelsCleabak Elifemeds COOGEOPEMO cialis 5 mg Oppola Cialis Tratamiento Impotencia

              • avatar Online Viagra

                Leading Online Pharmacy – Contact us at +1 (917) 259-3352 for unbelievable rates, discount and offers on any medicine. Get it delivered free of cost at your door steps, call us today. Phone : +1 (917) 259-3352

                • avatar Small CPA Firms Near Me

                  I was more than happy to uncover this website. I wanted to thank you for ones time just for this wonderful read!! I definitely enjoyed every bit of it and i also have you bookmarked to check out new stuff on your web site.