EPEL (Extra Packages for Enterprise Linux) is a frequently used package in Enterprise Linux (RHEL, CentOS) maintained by Fedora Special Interest Group.
The following takes CentOS 7 as an example to explain how to use the epel mirror of this mirror site. This method is also available for CentOS 8 or CentOS Stream.
First install epel-release from CentOS Extras:
Modify /etc/yum.repos.d/epel.repo to comment out the lines starting with mirrorlist and metalink.
Next, uncomment the line beginning baseurl in this file and replace http://download.fedoraproject.org/pub with https://mirror.citrahost.com.
Can be automatically replaced with the following command: (from https://github.com/tuna/issues/issues/687)
The modification results are as follows: (for reference only, different versions may be different)
Run yum update to test it.