Bug 1175566 - Can not use mirrorlist with RHEL $releasever
Summary: Can not use mirrorlist with RHEL $releasever
Alias: None
Product: Fedora
Classification: Fedora
Component: mirrormanager
Version: 21
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Pierre-YvesChibon
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2014-12-18 03:32 UTC by Ian Wienand
Modified: 2015-07-28 12:18 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-07-28 12:18:33 UTC
Type: Bug

Attachments (Terms of Use)

Description Ian Wienand 2014-12-18 03:32:38 UTC
I'm trying to install the latest EPEL automatically with the following repo

name=Setup EPEL

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

Comment 1 Matt Domsch 2015-07-23 04:05:40 UTC
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.

Comment 2 Pierre-YvesChibon 2015-07-28 12:18:33 UTC
I have added the repository redirect that was indeed missing.

So this should be fixed now :)

Note You need to log in before you can comment on or make changes to this bug.