64位RHEL5系统上运行yum出现"Thissystem is not registered with RHN”的解决方法
在红帽EL5上运行yum,提示“This system is not registered with RHN”,意思是没有在官网上注册,不能下载RH的软件包,替代方案是采用centos源。
1.卸载rhel的默认安装的yum包
查看yum包:
# rpm -qa | grep yum
卸载yum包。卸载要使用nodeps参数,否则由于依赖关系是无法卸载成功的:
# rpm -qa|grep yum|xargs rpm -e --nodeps
2.下载新的yum包并安装(请注意下载对应系统及位数的安装包)
1 # wget http://tel.mirrors.163.com/centos/5/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
2
3 # wget http://tel.mirrors.163.com/centos/5/os/x86_64/CentOS/yum