Linux distributions, software installation sources
=================================================================
1. Backup
Mv/etc/yum.repos.d/centos-base.repo/etc/yum.repos.d/centos-base.repo.backup
-----------------------------------------------------------------
2, download the new Centos-base.repo to/etc/yum.repos.d/
2.1CentOS 5
wget-o/etc/yum.repos.d/centos-base.repo http://mirrors.aliyun.com/repo/centos-5.repo
2.2CentOS 6
wget-o/etc/yum.repos.d/centos-base.repo Http://mirrors.aliyun.com/repo/Centos-6.repo
2.3CentOS 7
Wget-o/etc/yum.repos.d/centos-base.repo Http://mirrors.aliyun.com/repo/Centos-7.repo
-----------------------------------------------------------------
3. After running Yum Makecache generate cache
Yum Clean All
Yum Makecache
=================================================================
This article from "zhangyiling" blog, reproduced please contact the author!
Linux Yum Source