yum安装时提示:This system is not registered with an entitlement server. You can use subscription-manager

问题:

[root@master ~]#  yum install -y yum-utils device-mapper-persistent-data     lvm2 bash-completion
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.

原因:

Red Hat Subscription Manager订阅管理器,它会让你一直register,禁用就好。
脚本文件: /usr/lib/yum-plugins/subscription-manager.py
配置文件: /etc/yum/pluginconf.d/subscription-manager.conf
调用了脚本 /usr/share/rhsm/repolib.py
去重写或者更新/etc/yum.repos.d/redhat.repo文件。
每次yum调用(不禁掉plugins的情况下),都会更新此文件。

解决

停止掉该插件的使用,在配置文件中把enable=0即可。

[root@localhost ~]# vim /etc/yum/pluginconf.d/subscription-manager.conf

[main]
enabled=0  

你可能感兴趣的:(linux)