[root@sre01 ~]# cd /etc/yum.repos.d/
[root@sre01 yum.repos.d]# wget -O epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
--2024-10-03 14:22:56-- http://mirrors.aliyun.com/repo/epel-7.repo
Resolving mirrors.aliyun.com (mirrors.aliyun.com)... 42.59.6.85, 42.59.6.88, 42.59.6.92, ...
Connecting to mirrors.aliyun.com (mirrors.aliyun.com)|42.59.6.85|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 664 [application/octet-stream]
Saving to: ‘epel.repo’
100%[============================================================================>] 664 --.-K/s in 0s
2024-10-03 14:22:56 (45.1 MB/s) - ‘epel.repo’ saved [664/664]
[root@sre01 yum.repos.d]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel | 4.3 kB 00:00:00
(1/3): epel/x86_64/group | 399 kB 00:00:00
(2/3): epel/x86_64/updateinfo | 1.0 MB 00:00:00
(3/3): epel/x86_64/primary_db | 8.7 MB 00:00:01
repo id repo name status
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,791
myrepo myrepo 10,072
zabbix zabbix