RHEL 8 - EPEL Installation fails as it refers to a link that fails

From the instructions here:
EPEL - Fedora Project Wiki

Specifically this command for RHEL 8
yum install ht tps://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
creates an epel.repo file as below that has a broken link in it

The link in the /etc/yum.repos.d/epel.repo file is:
htt p s://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir

This link (as of 9 Jul 21) is failing with:

This site can’t be reached

The web page at https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir might be temporarily down or it may have moved permanently to a new web address.

ERR_INVALID_RESPONSE

Are you not aware that sometimes there is an interruption in paths on the internet? The failure could be dns, or it could be the server itself, or it could be one of possibly several carriers in the path between you and the server.

I suggest you wait some time then try again. If it still fails after several attempts over a 24 hour period then it might become an issue.

1 Like

See if in your browser you get a result for: https://mirrors.fedoraproject.org/metalink?repo=epel-8&arch=x86_64

Also, I noted that there is a mistake in the url: htt p s. Did you introduce the typo here or has the actual .repo file the same typo.

Another problem could be the the $releasever variable. What does it contain on your system? See here: 404 error trying to install EPEL - Red Hat Customer Portal