cat /etc/issue.net
Red Hat Enterprise Linux Server release 5.4 (Tikanga) Kernel \r on an \m
#yum update Loaded plugins: rhnplugin, security This system is not registered with RHN. RHN support will be disabled.
1.卸载rhel的默认安装的yum包
查看yum包 rpm -qa|grep yum
卸载之 rpm -qa|grep yum|xargs rpm -e –nodeps
2.下载新的yum包 32位 mkdir yum cd yum wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-3.2.22-39.el5.centos.noarch.rpm wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
安装 rpm -ivh yum-*
3.下载yum的配置源 cd /etc/yum.repos.d wget http://mirrors.163.com/.help/CentOS5-Base-163.repo yum makecache
No Responses (yet)
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.