全部改成阿里云
[root@xclinux ~]# rm -rf /etc/yum.repos.d/*
执行此操作的时候记得事先装好wget 不然 你就得挂载光盘用rpm装wget了
[root@xclinux ~]# wget -P /etc/yum.repos.d/
http://mirrors.aliyun.com/repo/epel-6.repo
http://mirrors.aliyun.com/repo/Centos-6.repo
这条命令的意思是把centos6的repo文件和epel文件同时下载到/etc/yum.repos.d这个目录下
这个时候,执行 yum repolist的结果如下
浙公网安备 33010602011771号