CentOS 7 已于 2024 年 6 月 30 日结束维护,强烈建议立即迁移到其他解决方案。
/etc/yum.repos.d/centos7_base.repo
或 /etc/yum.repos.d/CentOS-Base.repo
文件中的内容yum clean all
yum makecache
官方文档: https://help.mirrors.cernet.edu.cn/centos-vault/
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[os]
name=CERNET centos os - $basearch
baseurl=https://mirrors.cernet.edu.cn/centos-vault/$releasever/os/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.cernet.edu.cn/centos-vault/RPM-GPG-KEY-CentOS-7
[updates]
name=CERNET centos updates - $basearch
baseurl=https://mirrors.cernet.edu.cn/centos-vault/$releasever/updates/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.cernet.edu.cn/centos-vault/RPM-GPG-KEY-CentOS-7
[centosplus]
name=CERNET centosplus - $basearch
baseurl=https://mirrors.cernet.edu.cn/centos-vault/$releasever/centosplus/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://mirrors.cernet.edu.cn/centos-vault/RPM-GPG-KEY-CentOS-7
[cr]
name=CERNET centos cr - $basearch
baseurl=https://mirrors.cernet.edu.cn/centos-vault/$releasever/cr/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://mirrors.cernet.edu.cn/centos-vault/RPM-GPG-KEY-CentOS-7
[extras]
name=CERNET centos extras - $basearch
baseurl=https://mirrors.cernet.edu.cn/centos-vault/$releasever/extras/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.cernet.edu.cn/centos-vault/RPM-GPG-KEY-CentOS-7
[fasttrack]
name=CERNET centos fasttrack - $basearch
baseurl=https://mirrors.cernet.edu.cn/centos-vault/$releasever/fasttrack/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://mirrors.cernet.edu.cn/centos-vault/RPM-GPG-KEY-CentOS-7
官方文档: https://help.mirrors.cernet.edu.cn/centos/?mirror=ISRC-ISCAS
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[os]
name=ISCAS centos os - $basearch
baseurl=https://mirror.iscas.ac.cn/centos/$releasever/os/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirror.iscas.ac.cn/centos/RPM-GPG-KEY-CentOS-7
[updates]
name=ISCAS centos updates - $basearch
baseurl=https://mirror.iscas.ac.cn/centos/$releasever/updates/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirror.iscas.ac.cn/centos/RPM-GPG-KEY-CentOS-7
[centosplus]
name=ISCAS centosplus - $basearch
baseurl=https://mirror.iscas.ac.cn/centos/$releasever/centosplus/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://mirror.iscas.ac.cn/centos/RPM-GPG-KEY-CentOS-7
[cr]
name=ISCAS centos cr - $basearch
baseurl=https://mirror.iscas.ac.cn/centos/$releasever/cr/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://mirror.iscas.ac.cn/centos/RPM-GPG-KEY-CentOS-7
[extras]
name=ISCAS centos extras - $basearch
baseurl=https://mirror.iscas.ac.cn/centos/$releasever/extras/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirror.iscas.ac.cn/centos/RPM-GPG-KEY-CentOS-7
[fasttrack]
name=ISCAS centos fasttrack - $basearch
baseurl=https://mirror.iscas.ac.cn/centos/$releasever/fasttrack/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://mirror.iscas.ac.cn/centos/RPM-GPG-KEY-CentOS-7
官方文档: https://mirrors.tuna.tsinghua.edu.cn/help/centos/
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[os]
name=TUNA centos os - $basearch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/os/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[updates]
name=TUNA centos updates - $basearch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/updates/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[centosplus]
name=TUNA centosplus - $basearch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/centosplus/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[cr]
name=TUNA centos cr - $basearch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/cr/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[extras]
name=TUNA centos extras - $basearch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/extras/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[fasttrack]
name=TUNA centos fasttrack - $basearch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/fasttrack/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/centos/RPM-GPG-KEY-CentOS-7
官方文档: https://mirrors.ustc.edu.cn/help/centos.html
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[os]
name=USTC centos os - $basearch
baseurl=https://mirrors.ustc.edu.cn/centos/$releasever/os/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[updates]
name=USTC centos updates - $basearch
baseurl=https://mirrors.ustc.edu.cn/centos/$releasever/updates/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[centosplus]
name=USTC centosplus - $basearch
baseurl=https://mirrors.ustc.edu.cn/centos/$releasever/centosplus/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[cr]
name=USTC centos cr - $basearch
baseurl=https://mirrors.ustc.edu.cn/centos/$releasever/cr/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[extras]
name=USTC centos extras - $basearch
baseurl=https://mirrors.ustc.edu.cn/centos/$releasever/extras/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[fasttrack]
name=USTC centos fasttrack - $basearch
baseurl=https://mirrors.ustc.edu.cn/centos/$releasever/fasttrack/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-7
官方文档: https://mirrors.zju.edu.cn/docs/centos/
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[os]
name=ZJU centos os - $basearch
baseurl=https://mirrors.zju.edu.cn/centos/$releasever/os/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.zju.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[updates]
name=ZJU centos updates - $basearch
baseurl=https://mirrors.zju.edu.cn/centos/$releasever/updates/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.zju.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[centosplus]
name=ZJU centosplus - $basearch
baseurl=https://mirrors.zju.edu.cn/centos/$releasever/centosplus/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://mirrors.zju.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[cr]
name=ZJU centos cr - $basearch
baseurl=https://mirrors.zju.edu.cn/centos/$releasever/cr/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://mirrors.zju.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[extras]
name=ZJU centos extras - $basearch
baseurl=https://mirrors.zju.edu.cn/centos/$releasever/extras/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.zju.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[fasttrack]
name=ZJU centos fasttrack - $basearch
baseurl=https://mirrors.zju.edu.cn/centos/$releasever/fasttrack/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://mirrors.zju.edu.cn/centos/RPM-GPG-KEY-CentOS-7
官方文档: https://mirror.nju.edu.cn/mirrorz-help/centos/?mirror=NJU
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[os]
name=NJU centos os - $basearch
baseurl=https://mirrors.nju.edu.cn/centos/$releasever/os/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.nju.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[updates]
name=NJU centos updates - $basearch
baseurl=https://mirrors.nju.edu.cn/centos/$releasever/updates/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.nju.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[centosplus]
name=NJU centosplus - $basearch
baseurl=https://mirrors.nju.edu.cn/centos/$releasever/centosplus/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://mirrors.nju.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[cr]
name=NJU centos cr - $basearch
baseurl=https://mirrors.nju.edu.cn/centos/$releasever/cr/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://mirrors.nju.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[extras]
name=NJU centos extras - $basearch
baseurl=https://mirrors.nju.edu.cn/centos/$releasever/extras/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.nju.edu.cn/centos/RPM-GPG-KEY-CentOS-7
[fasttrack]
name=NJU centos fasttrack - $basearch
baseurl=https://mirrors.nju.edu.cn/centos/$releasever/fasttrack/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://mirrors.nju.edu.cn/centos/RPM-GPG-KEY-CentOS-7
官方文档: https://mirrors.cloud.tencent.com/help/centos.html
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[os]
name=Qcloud centos os - $basearch
baseurl=https://mirrors.cloud.tencent.com/centos/$releasever/os/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.cloud.tencent.com/centos/RPM-GPG-KEY-CentOS-7
[updates]
name=Qcloud centos updates - $basearch
baseurl=https://mirrors.cloud.tencent.com/centos/$releasever/updates/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.cloud.tencent.com/centos/RPM-GPG-KEY-CentOS-7
[centosplus]
name=Qcloud centosplus - $basearch
baseurl=https://mirrors.cloud.tencent.com/centos/$releasever/centosplus/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://mirrors.cloud.tencent.com/centos/RPM-GPG-KEY-CentOS-7
[cr]
name=Qcloud centos cr - $basearch
baseurl=https://mirrors.cloud.tencent.com/centos/$releasever/cr/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://mirrors.cloud.tencent.com/centos/RPM-GPG-KEY-CentOS-7
[extras]
name=Qcloud centos extras - $basearch
baseurl=https://mirrors.cloud.tencent.com/centos/$releasever/extras/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.cloud.tencent.com/centos/RPM-GPG-KEY-CentOS-7
[fasttrack]
name=Qcloud centos fasttrack - $basearch
baseurl=https://mirrors.cloud.tencent.com/centos/$releasever/fasttrack/$basearch/
enabled=0
gpgcheck=1
gpgkey=https://mirrors.cloud.tencent.com/centos/RPM-GPG-KEY-CentOS-7
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[os]
name=Qcloud centos os - $basearch
baseurl=http://mirrors.tencentyun.com/centos/$releasever/os/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://mirrors.tencentyun.com/centos/RPM-GPG-KEY-CentOS-7
[updates]
name=Qcloud centos updates - $basearch
baseurl=http://mirrors.tencentyun.com/centos/$releasever/updates/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://mirrors.tencentyun.com/centos/RPM-GPG-KEY-CentOS-7
[centosplus]
name=Qcloud centosplus - $basearch
baseurl=http://mirrors.tencentyun.com/centos/$releasever/centosplus/$basearch/
enabled=0
gpgcheck=1
gpgkey=http://mirrors.tencentyun.com/centos/RPM-GPG-KEY-CentOS-7
[cr]
name=Qcloud centos cr - $basearch
baseurl=http://mirrors.tencentyun.com/centos/$releasever/cr/$basearch/
enabled=0
gpgcheck=1
gpgkey=http://mirrors.tencentyun.com/centos/RPM-GPG-KEY-CentOS-7
[extras]
name=Qcloud centos extras - $basearch
baseurl=http://mirrors.tencentyun.com/centos/$releasever/extras/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://mirrors.tencentyun.com/centos/RPM-GPG-KEY-CentOS-7
[fasttrack]
name=Qcloud centos fasttrack - $basearch
baseurl=http://mirrors.tencentyun.com/centos/$releasever/fasttrack/$basearch/
enabled=0
gpgcheck=1
gpgkey=http://mirrors.tencentyun.com/centos/RPM-GPG-KEY-CentOS-7
yum install -y epel-release
/etc/yum.repos.d/epel.repo
文件中的内容yum update
官方文档: https://help.mirrors.cernet.edu.cn/epel/?mirror=ISRC-ISCAS
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=https://mirror.iscas.ac.cn/epel/7/$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
baseurl=https://mirror.iscas.ac.cn/epel/7/$basearch/debug
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
baseurl=https://mirror.iscas.ac.cn/epel/7/SRPMS
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
官方文档: https://mirrors.tuna.tsinghua.edu.cn/help/epel/
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/7/$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/7/$basearch/debug
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/7/SRPMS
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
官方文档: https://mirrors.ustc.edu.cn/help/epel.html
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=https://mirrors.ustc.edu.cn/epel/7/$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
baseurl=https://mirrors.ustc.edu.cn/epel/7/$basearch/debug
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
baseurl=https://mirrors.ustc.edu.cn/epel/7/SRPMS
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
官方文档: https://mirrors.zju.edu.cn/docs/epel/
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=https://mirrors.zju.edu.cn/epel/7/$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
baseurl=https://mirrors.zju.edu.cn/epel/7/$basearch/debug
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
baseurl=https://mirrors.zju.edu.cn/epel/7/SRPMS
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
官方文档: https://mirror.nju.edu.cn/mirrorz-help/epel/?mirror=NJU
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=https://mirror.nju.edu.cn/epel/7/$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
baseurl=https://mirror.nju.edu.cn/epel/7/$basearch/debug
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
baseurl=https://mirror.nju.edu.cn/epel/7/SRPMS
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
官方文档: https://mirrors.cloud.tencent.com/help/epel.html
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=https://mirrors.cloud.tencent.com/epel/7/$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
baseurl=https://mirrors.cloud.tencent.com/epel/7/$basearch/debug
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
baseurl=https://mirrors.cloud.tencent.com/epel/7/SRPMS
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=http://mirrors.tencentyun.com/epel/7/$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
baseurl=http://mirrors.tencentyun.com/epel/7/$basearch/debug
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
baseurl=http://mirrors.tencentyun.com/epel/7/SRPMS
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1