Epel 镜像

开源镜像

简介

EPEL (Extra Packages for Enterprise Linux), 是由 Fedora Special Interest Group 维护的 Enterprise Linux(RHEL、CentOS)中经常用到的包。

下载地址:

配置方法

1,备份

mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup
mv /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel-testing.repo.backup

2,更新repo

CentOS 5

wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-5 http://mirrors.ivolces.com/epel/RPM-GPG-KEY-EPEL-5
wget -O /etc/yum.repos.d/epel.repo http://mirrors.ivolces.com/repo/epel-5.repo

CentOS 6

wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 http://mirrors.ivolces.com/epel/RPM-GPG-KEY-EPEL-6
wget -O /etc/yum.repos.d/epel.repo http://mirrors.ivolces.com/repo/epel-6.repo

CentOS 7

wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 http://mirrors.ivolces.com/epel/RPM-GPG-KEY-EPEL-7
wget -O /etc/yum.repos.d/epel.repo http://mirrors.ivolces.com/repo/epel-7.repo

CentOS 8

yum install -y https://mirrors.ivolces.com/epel/epel-release-latest-8.noarch.rpm
wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 http://mirrors.ivolces.com/epel/RPM-GPG-KEY-EPEL-8
#sed -i 's|^#baseurl=https://download.fedoraproject.org/pub|baseurl=https://mirrors.ivolces.com |' /etc/yum.repos.d/epel*
sed -i 's|^#baseurl=https://download.example/pub|baseurl=https://mirrors.ivolces.com|' /etc/yum.repos.d/epel*
sed -i 's|^metalink|#metalink|' /etc/yum.repos.d/epel*


3,运行 yum makecache 生成缓存

相关链接

0
0
0
0
评论
未登录
看完啦,登录分享一下感受吧~
暂无评论