站长资讯网
最全最丰富的资讯网站

vm redhat yum 卸载重装centerOS的yum解析

Red Hat Enterprise Linux 需要注册,收费才可以使用yum进行自由下载

This system is not registered to Red Hat Subscription Management.You can use subscription-manager to register.

删除原有的yum

rpm -aq | grep yum | xargs rpm -e –nodeps

查看主机yum的安装情况

rpm -qa |grep yum

下载centerOS对应的yum 进行安装

http://mirrors.163.com/centos/6/os/x86_64/Packages/

rpm -ivh python-2.6.6-66.el6_8.x86_64.rpm python-libs-2.6.6-66.el6_8.x86_64.rpm

rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

rpm -ivh python-pycurl-7.19.0-9.el6.x86_64.rpm
rpm -ivh python-urlgrabber-3.9.1-11.el6.noarch.rpm

强制安装

rpm -i –force –nodeps rpm-python-4.8.0-59.el6.x86_64.rpm
rpm -ivh yum-plugin-fastestmirror-1.1.30-41.el6.noarch.rpm yum-3.2.29-81.el6.centos.noarch.rpm

设置yum下载源

/etc/yum.repos.d进行修改CentOS6-Base-163.rep 参考https://www.jianshu.com/p/446e3fe7d710

赞(0)
分享到: 更多 (0)
网站地图   沪ICP备18035694号-2    沪公网安备31011702889846号