常用的yum源:
1、EPEL yum 源: http://fedoraproject.org/wiki/EPEL
# rpm -ivh
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmcatepel.repo
[epel] name=ExtraPackagesforEnterpriseLinux7-$basearch #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch Metalink=https://mirrors.fedoraproject.org/Metalink?repo=epel-7&arch=$basearch failovermethod=priority enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 [epel-debuginfo] name=ExtraPackagesforEnterpriseLinux7-$basearch-Debug #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch/debug Metalink=https://mirrors.fedoraproject.org/Metalink?repo=epel-debug-7&arch=$basearch failovermethod=priority enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 gpgcheck=1 [epel-source] name=ExtraPackagesforEnterpriseLinux7-$basearch-Source #baseurl=http://download.fedoraproject.org/pub/epel/7/SRPMS Metalink=https://mirrors.fedoraproject.org/Metalink?repo=epel-source-7&arch=$basearch failovermethod=priority enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 gpgcheck=1
2、阿里yum 源 : http://mirrors.aliyun.com/
3、suhu yum 源 http://mirrors.sohu.com/centos/7/os/x86_64/
4、163 yum 源 http://mirrors.163.com/centos/7/
# cat CentOS7-Base-163.repo
#CentOS-Base.repo # #ThemirrorsystemusestheconnectingIPaddressoftheclientandthe #updatestatusofeachmirrortopickmirrorsthatareupdatedtoand #geographicallyclosetotheclient.YoushouldusethisforCentOSupdates #unlessyouaremanuallypickingothermirrors. # #Ifthemirrorlist=doesnotworkforyou,asafallbackyoucantrythe #remarkedoutbaseurl=lineinstead. # # [base] name=CentOS-7-Base-163.com #mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=os baseurl=http://mirrors.163.com/centos/7/os/$basearch/ gpgcheck=1 gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7 #releasedupdates [updates] name=CentOS-7-Updates-163.com #mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=updates baseurl=http://mirrors.163.com/centos/7/updates/$basearch/ gpgcheck=1 gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7 #additionalpackagesthatmaybeuseful [extras] name=CentOS-7-Extras-163.com #mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=extras baseurl=http://mirrors.163.com/centos/7/extras/$basearch/ gpgcheck=1 gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7 #additionalpackagesthatextendfunctionalityofexistingpackages [centosplus] name=CentOS-7-Plus-163.com baseurl=http://mirrors.163.com/centos/7/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7