- 先更换centos的源为163的,参考教程
阿里的源(貌似更全更快): http://mirrors.aliyun.com/repo/Centos-6.repo
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup curl http://mirrors.163.com/.help/CentOS6-Base-163.repo -O /etc/yum.repos.d/ yum clean all yum makecache
#(RHEL5) yum install yum-downloadonly #(RHEL6) yum install yum-plugin-downloadonly原文链接:/centos/381419.html