redhat6.4使用yum時提示須要註冊問題

[root@XAYQ-Test2 yum.repos.d]# yum list Loaded plugins: fastestmirror, priorities, product-id, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Loading mirror speeds from cached hostfile 因爲 redhat的yum在線更新是收費的,若是沒有註冊的話不能使用,若是要使用,需將redhat的yum卸載後,重啓安裝,再配置其餘源,如下爲詳細過程: 1.刪除redhat原有的yum [root@XAYQ-Test2 opt]# rpm -aq|grep yum|xargs rpm -e --nodeps 2.下載yum安裝文件 [root@XAYQ-Test2 opt]# wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-40.el6.centos.noarch.rpm [root@XAYQ-Test2 opt]# wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm [root@XAYQ-Test2 opt]# wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm [root@XAYQ-Test2 opt]# wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm 3.進行安裝yum [root@XAYQ-Test2 opt]# rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm [root@XAYQ-Test2 opt]# rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm [root@XAYQ-Test2 opt]# rpm -ivh yum-3.2.29-40.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm error: Failed dependencies:         yum-metadata-parser >= 1.1.0 is needed by yum-3.2.29-40.el6.centos.noarch 注意最後兩個包必需同時安裝,不然會相互依賴
相關文章
相關標籤/搜索