1、卸载redhat 5.4 原yum软件

      rpm -qa|grep yum|xargs rpm -e --nodeps

2、安装Centos yum软件

rpm -UVh http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-4.el5.x86_64.rpm http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm

3、进入目录 /etc/yum.repos.d , 

cd /etc/yum.repos.d

wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo

yum makecache

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐