简体   繁体   English

如何在centos上安装yum

[英]How to install yum on centos

I removed /usr/bin/yum by mistake. 我错误地删除了/usr/bin/yum

How to re install yum on centos6 Please help me ;( 如何在centos6上重新安装yum请帮助我;(

I followed website explanation but I got this error Failed dependencies: blah,blah or yum-2.2.1-1.centos4.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID ###: NOKEY 我按照网站的说明进行操作,但出现此错误Failed dependencies: blah,blahyum-2.2.1-1.centos4.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID ###: NOKEY

ps. PS。 I try this 我尝试这个

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm

and rpm -ivH yum-3.2.29-60.el6.centos.noarch.rpm rpm -ivH yum-3.2.29-60.el6.centos.noarch.rpm

then I got this error 然后我得到这个错误

 Failed dependencies:
    /usr/bin/python is needed by yum-3.2.29-60.el6.centos.noarch
    python >= 2.4 is needed by yum-3.2.29-60.el6.centos.noarch
    python(abi) = 2.6 is needed by yum-3.2.29-60.el6.centos.noarch
    python-sqlite is needed by yum-3.2.29-60.el6.centos.noarch

so I copied old version yum and This error what i got 所以我复制了旧版本的yum,这个错误是我得到的

-bash: /usr/bin/yum: /usr/bin/python2.6: bad interpreter: no such file or directory

(I upgraded python2.6 to python2.7) (我将python2.6升级到python2.7)

Is aptitude or apt-get available on the machine? 机器上是否有aptitude或apt-get?

apt-get install yum

Or have a look here: http://openvz.org/Install_yum 或在这里看看: http : //openvz.org/Install_yum

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM