mirror of
https://github.com/Kxsso/jcutmirror.git
synced 2026-03-27 15:27:02 +08:00
104 lines
3.3 KiB
Plaintext
104 lines
3.3 KiB
Plaintext
---
|
||
mirrorId: epel
|
||
---
|
||
|
||
## EPEL 源使用帮助
|
||
|
||
### 地址
|
||
|
||
[https://mirrors.jcut.edu.cn/epel/](https://mirrors.jcut.edu.cn/epel/)
|
||
|
||
### 说明
|
||
|
||
EPEL (Extra Packages for Enterprise Linux) 是由 Fedora Special Interest Group 为企业 Linux 创建、维护和管理的一个高质量附加包集合,适用于但不仅限于 Red Hat Enterprise Linux (RHEL), CentOS, Scientific Linux (SL), Oracle Linux (OL)。
|
||
|
||
### 收录架构
|
||
|
||
官方支持的所有架构
|
||
|
||
### 收录版本
|
||
|
||
官方支持的所有版本
|
||
|
||
---
|
||
|
||
### 使用说明
|
||
|
||
执行以下命令:
|
||
|
||
```shell
|
||
sudo yum install -y epel-release
|
||
sudo sed -e 's|^metalink=|#metalink=|g' \
|
||
-e 's|^#baseurl=https\?://download.fedoraproject.org/pub/epel/|baseurl=https://mirrors.jcut.edu.cn/epel/|g' \
|
||
-e 's|^#baseurl=https\?://download.example/pub/epel/|baseurl=https://mirrors.jcut.edu.cn/epel/|g' \
|
||
-i.bak \
|
||
/etc/yum.repos.d/epel.repo
|
||
```
|
||
|
||
以下是替换之后的 /etc/yum.repos.d/epel.repo 文件:
|
||
|
||
CentOS 8:
|
||
|
||
```text
|
||
[epel]
|
||
name=Extra Packages for Enterprise Linux $releasever - $basearch
|
||
# It is much more secure to use the metalink, but if you wish to use a local mirror
|
||
# place it's address here.
|
||
baseurl=https://mirrors.jcut.edu.cn/epel/$releasever/Everything/$basearch
|
||
#metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir
|
||
enabled=1
|
||
gpgcheck=1
|
||
countme=1
|
||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
|
||
|
||
[epel-debuginfo]
|
||
name=Extra Packages for Enterprise Linux $releasever - $basearch - Debug
|
||
# It is much more secure to use the metalink, but if you wish to use a local mirror
|
||
# place it's address here.
|
||
baseurl=https://mirrors.jcut.edu.cn/epel/$releasever/Everything/$basearch/debug
|
||
#metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-$releasever&arch=$basearch&infra=$infra&content=$contentdir
|
||
enabled=0
|
||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
|
||
gpgcheck=1
|
||
|
||
[epel-source]
|
||
name=Extra Packages for Enterprise Linux $releasever - $basearch - Source
|
||
# It is much more secure to use the metalink, but if you wish to use a local mirror
|
||
# place it's address here.
|
||
baseurl=https://mirrors.jcut.edu.cn/epel/$releasever/Everything/SRPMS
|
||
#metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-$releasever&arch=$basearch&infra=$infra&content=$contentdir
|
||
enabled=0
|
||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
|
||
gpgcheck=1
|
||
```
|
||
|
||
CentOS 7:
|
||
|
||
```text
|
||
[epel]
|
||
name=Extra Packages for Enterprise Linux 7 - $basearch
|
||
baseurl=https://mirrors.jcut.edu.cn/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=Extra Packages for Enterprise Linux 7 - $basearch - Debug
|
||
baseurl=https://mirrors.jcut.edu.cn/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=Extra Packages for Enterprise Linux 7 - $basearch - Source
|
||
baseurl=https://mirrors.jcut.edu.cn/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
|
||
``` |