Linux(Redhat 7.0) yum 软件仓库无法使用和subscription-manager提示

在Redhat 7.0系统中遇到YUM源无法使用的问题,由于RHEL的YUM源需要注册,而CentOS与RHEL相似且免费,因此可以将RHEL的YUM源替换为CentOS的。错误信息显示系统未注册,通过卸载RHEL相关软件包,下载并安装CentOS的YUM RPM包,修改repo文件,禁用subscription-manager插件,从而解决无法使用的问题。
摘要由CSDN通过智能技术生成

Redhat7 yum 无法使用

RHEL的YUM源需要注册用户才能更新使用说白了就是要收费了,由于CentOS和RHEL基本没有区别,并且CentOS已经被REHL收购。所以将RHEL的YUM源替换为CentOS即可

  • 错误信息
[root@micocube ~]# yum install gcc-c++
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 To enable Red Hat Subscription Management repositories:
     subscription-manager repos --enable <repo>
 To enable custom repositories:
     yum-config-manager --enable <repo>
  • 查看redhat 7.0系统本身所安装的那些yum软件包
[root@micocube ~]# rpm -qa | grep yum
yum-rhn-plugin-2.0.1-10.el7.noarch
yum-metadata-parser-1.1.4-10.el7.x86_64
yum-3.4.3-158.el7.noarch
  • 卸载这些软件包
[root@micocube ~]# rpm -e yum-rhn-plugin-2.0.1-
  • 0
    点赞
  • 15
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值