一直没哟成功过YUM,这些天倒是人开始YUN了,怪了。别人你都可以的事情到我这里就这么麻烦阿,是在不甘心阿,后来总算搞定了,原来我的防火墙开着,好像不能用wget这个命令来下东西,最后关了他,而且我安装的时候少了个安装包,但是提示是错误的,把我弄的恼火,就强行安装,结果自然不行阿,不知道有多少没有YUM成功的小鸟也在找这样的资料阿,下面的都是转载别人的资料的,感谢下这个好人阿,喔喔看 了下,这个文字也是转载别人的,找不到原作者了,只好贴下这个好人的地址,希望原作者不要找我要版权阿,
http://www.wunengwu.cn/yum-install-under-rhel5-to.html
![](/editor/icons/etc_20.gif)
![](/editor/icons/etc_20.gif)
http://www.wunengwu.cn/yum-install-under-rhel5-to.html
先删掉自带的yum:
rpm -aq|grep yum|xargs rpm -e –nodeps
下载三个文件并安装:
wget http://mirrors.163.com/centos/5/os/i386/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm
wget http://mirrors.163.com/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm
wget http://mirrors.163.com/centos/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
wget http://mirrors.163.com/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
wget http://mirrors.163.com/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm
wget http://mirrors.163.com/centos/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
wget http://mirrors.163.com/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
rpm -ivh python-iniparse-0.2.3-4.el5.noarch.rpm yum-metadata-parser-1.1.2-2.el5.i386.rpm yum-3.2.19-18.el5.centos.noarch.rpm yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
下载配置:
wget http://sudone.com/download/CentOS-Base.repo -O /etc/yum.repos.d/CentOS-Base.repo
更新:
yum update
可能下载会比较慢,有一个办法可以解决,那就是等…或者可以去寻找快一点的源,不过那消耗的时间会更多。。执行到后面的时候会问yes/no,那是问你要不要更新整个系统,我至今没有选择过yes。
装一个ImageMagick测测看看?:
yum install ImageMagick
试一下搜索:
yum search kernel
基本大功告成
附x86_64:
wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm
wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-2.el5.x86_64.rpm
wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-2.el5.x86_64.rpm
wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
以上都是复制过来的,经本人实验是有效的,终于可以YUM了,我的头一下子不YUN了,哈哈,