This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
阿新 • • 發佈:2022-03-24
目錄
redhat7.9
今天裝完後Redhat7.9忘記了yum的問題,在安裝命令時提示如下: This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. 關掉這個提示: ~]# vi /etc/yum/pluginconf.d/subscription-manager.conf [main] enabled=0 ====> 將1改為0 # 找了下方法便於以後使用 ~]# 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-168.el7.noarch # 將自帶的yum包刪除 ~]# rpm -qa|grep yum|xargs rpm -e --nodeps # 再來檢視則回顯為空 ~]# rpm -qa|grep yum ~]# curl -o yum-3.4.3-168.el7.centos.noarch.rpm http://mirrors.163.com/centos/7.9.2009/os/x86_64/Packages/yum-3.4.3-168.el7.centos.noarch.rpm ~]# curl -o yum-rhn-plugin-2.0.1-10.el7.noarch.rpm http://mirrors.163.com/centos/7.9.2009/os/x86_64/Packages/yum-rhn-plugin-2.0.1-10.el7.noarch.rpm ~]# curl -o yum-metadata-parser-1.1.4-10.el7.x86_64.rpm http://mirrors.163.com/centos/7.9.2009/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm ~]# curl -o yum-plugin-fastestmirror-1.1.31-54.el7_8.noarch.rpm http://mirrors.163.com/centos/7.9.2009/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-54.el7_8.noarch.rpm ~]# curl -o yum-utils-1.1.31-54.el7_8.noarch.rpm http://mirrors.163.com/centos/7.9.2009/os/x86_64/Packages/yum-utils-1.1.31-54.el7_8.noarch.rpm ~]# curl -o python-chardet-2.2.1-3.el7.noarch.rpm http://mirrors.163.com/centos/7.9.2009/os/x86_64/Packages/python-chardet-2.2.1-3.el7.noarch.rpm ~]# curl -o python-kitchen-1.1.1-5.el7.noarch.rpm http://mirrors.163.com/centos/7.9.2009/os/x86_64/Packages/python-kitchen-1.1.1-5.el7.noarch.rpm ~]# rpm -ivh python-urlgrabber-3.10-10.el7.noarch.rpm ~]# rpm -ivh python-chardet-2.2.1-3.el7.noarch.rpm ~]# rpm -ivh python-kitchen-1.1.1-5.el7.noarch.rpm ~]# rpm -ivh yum-plugin-fastestmirror-1.1.31-54.el7_8.noarch.rpm \ yum-metadata-parser-1.1.4-10.el7.x86_64.rpm \ yum-rhn-plugin-2.0.1-10.el7.noarch.rpm \ yum-utils-1.1.31-54.el7_8.noarch.rpm \ yum-3.4.3-168.el7.centos.noarch.rpm ~]# rpm -qa|grep yum yum-metadata-parser-1.1.4-10.el7.x86_64 yum-plugin-fastestmirror-1.1.31-54.el7_8.noarch yum-utils-1.1.31-54.el7_8.noarch yum-3.4.3-168.el7.centos.noarch yum-rhn-plugin-2.0.1-10.el7.noarch # 安裝wget ~]# curl -o wget-1.14-18.el7_6.1.x86_64.rpm http://mirrors.163.com/centos/7.9.2009/os/x86_64/Packages/wget-1.14-18.el7_6.1.x86_64.rpm ~]# rpm -ivh wget-1.14-18.el7_6.1.x86_64.rpm ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo ================================ http://mirrors.163.com/centos/ ================================ # 重點 ~]# vi /etc/yum.repos.d/CentOS-Base.repo 將所有 http://mirrors.163.com/centos/$releasever/os/$basearch/ 替換為 http://mirrors.163.com/centos/7.9.2009/os/x86_64 ====> 明確指明版本和架構 ~]# yum clean all && yum makecache ~]# yum -y install vim lrzsz net-tools bind-utils
redhat8.5