I'm trying to install the latest EPEL automatically with the following repo --- [epel] name=Setup EPEL mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-$releasever&arch=$basearch --- After than I can then "yum install epel-release" to know I'm getting the latest version The issue is that on RHEL "$releasever" expands to "6Server", which is an invalid path --- $ urlgrabber 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6Server&arch=x86_64' $ head -2 mirrorlist # repo = epel-6Server arch = x86_64 error: invalid repo or arch # following repositories are available: --- As far as I can tell, there is no variable for yum that provides just the major version. I think the solution is to have the mirrorlist recognise 6Server (and 7Server) and just point them at epel-X
This fails in production today using mirrormanager v2. There is supposed to be a RepositoryRedirect entry that maps repo=epel-6Server to repo=epel-6. That may have gotten lost somewhere. Reassigning to pingou.
I have added the repository redirect that was indeed missing. So this should be fixed now :)