yum安装提示“This system is not registered with an entitlement server. ”

系统是Centos 7.8

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

This system is not registered with an entitlement server. You can use subscription-manager to register.

回想前面不小心安装了部分redhat的包,

[root@localhost ~]# rpm -qa|grep rh-
rh-php72-php-zip-7.2.24-1.el7.x86_64
rh-php72-php-ldap-7.2.24-1.el7.x86_64
rh-php72-php-mysqlnd-7.2.24-1.el7.x86_64
rh-php72-php-xml-7.2.24-1.el7.x86_64
rh-nginx116-nginx-1.16.1-4.el7.x86_64
centos-release-scl-rh-2-3.el7.centos.noarch
rh-php72-php-cli-7.2.24-1.el7.x86_64
rh-php72-php-fpm-7.2.24-1.el7.x86_64
rh-php72-php-json-7.2.24-1.el7.x86_64
rh-php72-php-process-7.2.24-1.el7.x86_64
rh-php72-php-common-7.2.24-1.el7.x86_64
rh-php72-php-pear-1.10.5-1.el7.noarch
rh-nginx116-runtime-1.16-1.el7.x86_64
rh-php72-runtime-1-2.el7.x86_64
rh-php72-php-bcmath-7.2.24-1.el7.x86_64
rh-php72-php-gd-7.2.24-1.el7.x86_64
rh-php72-php-pdo-7.2.24-1.el7.x86_64
rh-php72-php-mbstring-7.2.24-1.el7.x86_64
rh-php72-1-2.el7.x86_64

这些包我已经不需要了,删除

rpm -e centos-release-scl-2-3.el7.centos.noarch

然后再删除其它安装包

rpm -qa|grep rh- |xargs rpm -e

查看下,还是有提示

[root@localhost yum.repos.d]# which subscription-manager
/usr/sbin/subscription-manager
[root@localhost yum.repos.d]# yum provides subscription-manager
已加载插件:fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Loading mirror speeds from cached hostfile
subscription-manager-1.24.26-1.el7.centos.x86_64 : Tools and libraries for subscription and repository management
源    :base



subscription-manager-1.24.26-3.el7.centos.x86_64 : Tools and libraries for subscription and repository management
源    :updates



subscription-manager-1.24.26-3.el7.centos.x86_64 : Tools and libraries for subscription and repository management
源    :@updates



[root@localhost yum.repos.d]# yum remove subscription-manager
已加载插件:fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

正在解决依赖关系
--> 正在检查事务
---> 软件包 subscription-manager.x86_64.0.1.24.26-3.el7.centos 将被 删除
--> 正在处理依赖关系 subscription-manager,它被软件包 1:containers-common-0.1.40-11.el7_8.x86_64 需要
--> 正在检查事务
---> 软件包 containers-common.x86_64.1.0.1.40-11.el7_8 将被 删除
--> 正在处理依赖关系 skopeo-containers >= 1:0.1.26-2,它被软件包 2:docker-common-1.13.1-162.git64e9980.el7.centos.x86_64 需要
--> 正在检查事务
---> 软件包 docker-common.x86_64.2.1.13.1-162.git64e9980.el7.centos 将被 删除
--> 正在处理依赖关系 docker-common,它被软件包 2:docker-client-1.13.1-162.git64e9980.el7.centos.x86_64 需要
--> 正在处理依赖关系 docker-common = 2:1.13.1-162.git64e9980.el7.centos,它被软件包 2:docker-1.13.1-162.git64e9980.el7.centos.x86_64 需要
--> 正在检查事务
---> 软件包 docker.x86_64.2.1.13.1-162.git64e9980.el7.centos 将被 删除
---> 软件包 docker-client.x86_64.2.1.13.1-162.git64e9980.el7.centos 将被 删除
--> 解决依赖关系完成

依赖关系解决

=========================================================================================================================================
 Package                            架构                 版本                                               源                      大小
=========================================================================================================================================
正在删除:
 subscription-manager               x86_64               1.24.26-3.el7.centos                               @updates               4.4 M
为依赖而移除:
 containers-common                  x86_64               1:0.1.40-11.el7_8                                  @extras                 43 k
 docker                             x86_64               2:1.13.1-162.git64e9980.el7.centos                 @extras                 65 M
 docker-client                      x86_64               2:1.13.1-162.git64e9980.el7.centos                 @extras                 13 M
 docker-common                      x86_64               2:1.13.1-162.git64e9980.el7.centos                 @extras                4.4 k

事务概要
=========================================================================================================================================
移除  1 软件包 (+4 依赖软件包)

安装大小:82 M
是否继续?[y/N]:

只要删除这个subscription-manager-1.24.26-3.el7.centos.x86_64就可删除提示,但docker依赖这个,而且不影响使用就算了。

你可能感兴趣的:(LINUX)