封尘网

让学习成为一种习惯!

centos7 执行yum时报not registered with Subscription Management

安装Centos系统可以说已经N多次了,今天在笔记本的Vmware虚拟机上安装了Centos7最小化安装;安装完成后,在配置内网源的时候执行yum命令时报了这样的一个异常信息。

[root@reg yum.repos.d]# yum clean all
Loaded plugins: fastestmirror, product-id, search-disabled-repos,
              : subscription-manager
This system is not registered with Subscription Management. You can use subscription-manager to register.

我的系统版本:

[root@reg yum.repos.d]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)

内核版本:

[root@reg yum.repos.d]# uname -r
3.10.0-327.el7.x86_64

虽然影响不大,但是每次执行yum命令都会这样不喜欢,根据提示尝试安装subscription-manager提示已经安装了;

Package subscription-manager-1.17.15-1.el7.centos.x86_64 already installed and latest version

查看有哪几个包安装了;

[root@reg yum.repos.d]# rpm -qa|grep sub
subversion-1.7.14-10.el7.x86_64
subscription-manager-1.17.15-1.el7.centos.x86_64
subversion-libs-1.7.14-10.el7.x86_64

发现这几个包我都没怎么用,再看看之前的系统中都没有subscription-manager包,既然没有也正常使用那干脆就卸载算了;

[root@reg yum.repos.d]# rpm -e --nodeps subscription-manager-1.17.15-1.el7.centos.x86_64

卸载完成后,再次执行就再也没有提示了。

提醒:本文最后更新于 2334 天前,文中所描述的信息可能已发生改变,请谨慎使用。