将redhat的yum换成centos的yum
1.卸载redhat自带的yum组件 [root@localhost ~]# rpm -qa|grep yum|xargs rpm -e --nodeps 2.查看系统版本 [root@localhost ~]# lsb_release -a 显示为:Red Hat Enterprise Linux Server release 6.1 于是找对应的CentOS6.1 但是在 http://mirrors.ustc.edu.cn/centos/6.0/readme 看到 This directory (and version of CentOS) is depreciated. For normal users, you should use /6/ and not /6.0/ in your path. Please see this FAQ concerning the CentOS release scheme: http://www.centos.org/modules/smartfaq/faq.php?faqid=34 If you know what you are doing, and absolutely want to remain at the 6.0 level, go to http://vault.centos.org/ for packages.