链接
https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
需要联网
加入dns
ping www.baidu.com
PING www.a.shifen.com (39.156.66.18) 56(84) bytes of data.
64 bytes from 39.156.66.18 (39.156.66.18): icmp_seq=1 ttl=128 time=16.7 ms
64 bytes from 39.156.66.18 (39.156.66.18): icmp_seq=2 ttl=128 time=16.3 ms
64 bytes from 39.156.66.18 (39.156.66.18): icmp_seq=3 ttl=128 time=16.4 ms
64 bytes from 39.156.66.18 (39.156.66.18): icmp_seq=4 ttl=128 time=16.7 ms
^C
--- www.a.shifen.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3006ms
配置好本地源
直接下载就可以了
dnf -y install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
[root@cs2 yum.repos.d]# ll
total 20
-rw-r--r--. 1 root root 1485 Jan 31 11:19 epel-modular.repo
-rw-r--r--. 1 root root 1422 Jan 31 11:19 epel.repo
-rw-r--r--. 1 root root 1584 Jan 31 11:19 epel-testing-modular.repo
-rw-r--r--. 1 root root 1521 Jan 31 11:19 epel-testing.repo
-rw-r--r--. 1 root root 680 Mar 15 10:22 media.repo