Missing epel metalink.xml
I have installed the Fedora epel repos on a RHEL 7.6 host:
yum install epel-release-latest-7.noarch.rpm
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Examining epel-release-latest-7.noarch.rpm: epel-release-7-12.noarch
Marking epel-release-latest-7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-12 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
Installing:
epel-release noarch 7-12 /epel-release-latest-7.noarch 24 k
Transaction Summary
Install 1 Package
Total size: 24 k
Installed size: 24 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-7-12.noarch 1/1
Verifying : epel-release-7-12.noarch 1/1
Installed:
epel-release.noarch 0:7-12
Complete!
yum update
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
epel/x86_64/metalink | 2.0 kB 00:00:00
Could not parse metalink https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64&infra=$infra&content=$contentdir error was
File /var/cache/yum/x86_64/7Server/epel/metalink.xml.tmp is not XML
....
File /var/cache/yum/x86_64/7Server/epel/metalink.xml does not exist
....
ls -l /var/cache/yum/x86_64/7Server/epel/metalink.xml.tmp
ls: cannot access /var/cache/yum/x86_64/7Server/epel/metalink.xml.tmp: No such file or directory
So, it would appear that the installation should have created /var/cache/yum/x86_64/7Server/epel/metalink.xml.tmp but didn't. Any ideas why this happened and how to fix? Obviously, if I could just get a valid metalink.xml file I should be able to just copy into the correct location and move foreward. Any help is greatly appreciated.