美文网首页
EPEL(Extra Packages for Enterpri

EPEL(Extra Packages for Enterpri

作者: jklzt | 来源:发表于2016-12-17 18:27 被阅读0次

修改/etc/yum.repos.d/epel.repo,将baseurl开头的行取消注释(删掉#),并注释mirrorlist 开头的行(在头部加一个#)。接下来,把这个文件里的http://download.fedoraproject.org/pub替换成https://mirrors.tuna.tsinghua.edu.cn即可。

[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/7/$basearch
#mirrorlist=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=Extra Packages for Enterprise Linux 7 - $basearch - Debug
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/7/$basearch/debug
#mirrorlist=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=Extra Packages for Enterprise Linux 7 - $basearch - Source
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/7/SRPMS
#mirrorlist=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
yum update   //test it

相关文章

网友评论

      本文标题:EPEL(Extra Packages for Enterpri

      本文链接:https://www.haomeiwen.com/subject/ddxamttx.html