阿里云的yum源
#Linux CentOS 5.x
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
#Linux CentOS 6.x
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
#Linux CentOS 7.x
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
网易的yum源
#Linux CentOS 5.x
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS5-Base-163.repo
#Linux CentOS 6.x
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS6-Base-163.repo
#Linux CentOS 7.x
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
搜狐的yum源
wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
中科大的yum源
wget http://centos.ustc.edu.cn/CentOS-Base.repo
EPEL的yum源
#Linux CentOS 5.x
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5.noarch.rpm
#Linux CentOS 6.x
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
#Linux CentOS 7.x
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm