Red Hat 7.5 Yum Replacement

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

1:Test Environment

[root@xilong ~]# cat /etc/os-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.5 (Maipo)"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.5 (Maipo)"
[root@xilong ~]# uname -r 3.10.0-862.el7.x86_64

 2:Delete Installed Yum Packages

[root@xilong ~]# rpm -qa |grep yum
yum-metadata-parser-1.1.4-10.el7.x86_64
yum-rhn-plugin-2.0.1-10.el7.noarch
yum-3.4.3-158.el7.noarch
yum-langpacks-0.4.2-7.el7.noarch
PackageKit-yum-1.1.5-1.el7.x86_64
yum-utils-1.1.31-45.el7.noarch

[root@xilong ~]# rpm -qa | grep yum | xargs rpm -e --nodeps
warning: /etc/yum/pluginconf.d/langpacks.conf saved as /etc/yum/pluginconf.d/langpacks.conf.rpmsave

[root@xilong ~]# rpm -qa |grep yum

 3:

猜你喜欢

转载自www.cnblogs.com/xilong-devops/p/9033249.html