RHEL 6.2/i686配置使用CentOS YUM源

#参考: http://www.linuxde.net/2011/10/1578.html
sh# rpm -aq|grep yum|xargs rpm -e --nodeps
sh# wget http://mirror.centos.org/centos/6.2/os/i386/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
sh# wget http://mirror.centos.org/centos/6.2/os/i386/Packages/yum-metadata-parser-1.1.2-16.el6.i686.rpm
sh# wget http://mirror.centos.org/centos/6.2/os/i386/Packages/yum-3.2.29-22.el6.centos.noarch.rpm
sh# wget http://mirror.centos.org/centos/6.2/os/i386/Packages/yum-plugin-fastestmirror-1.1.30-10.el6.noarch.rpm
sh# rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
sh# rpm -ivh yum-metadata-parser-1.1.2-16.el6.i686.rpm
sh# rpm -ivh yum-3.2.29-22.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-10.el6.noarch.rpm
sh# cd /etc/yum.repos.d/
sh# wget  http://mirrors.163.com/.help/CentOS6-Base-163.repo
sh# vi CentOS6-Base-163.repo
(把文件里面的$releasever全部替换为版本号: 6.2)
sh# yum clean all
sh# yum makecache
sh# yum search vim #测试

 

http://hi.baidu.com/zjstandup/blog/item/2a3d93fbd17b623d4e4aea37.html

posted @ 2012-03-30 14:47  今心  阅读(1440)  评论(0编辑  收藏  举报