在红帽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包并安装(请注意下载对应系统及位数的安装…