RHEL Yum repo instructions don't work on RHEL 7
J. Lewis Muir
jlmuir at imca-cat.org
Tue Oct 1 17:42:27 UTC 2019
I'd like to report a problem with the RHEL/CentOS instructions at
They don't work on RHEL 7. When I attempt to install the nginx package
as root with
yum install nginx
I get an HTTP 404 error:
http://nginx.org/packages/centos/7Workstation/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
The problem seems to be the use of the $releasever Yum variable in the
baseurl key of the nginx.repo spec:
On my RHEL 7 machine, that variable is evaluating to
the nginx repo is expecting $releasever to evaluate to just the release
number without the variant/edition text. So, if in nginx.repo I change
There's more info at
I have a default
and it does not have a line that sets the distroverpkg key.
I think something in the documentation or the nginx repo needs to be
One fix would be to list the release version number explicitly in the
baseurl key value like I did above. And just say in the documentation
that you have to set the number to the version that matches your
installed version of RHEL/CentOS.
Another fix would be to add symlinks or redirects or whatever at
that would make the $releasever work. For example:
7Workstation -> 7
7Server -> 7
I don't know whether there are other release variants/editions. At some
point, "Client" was a variant/edition, I think, but it seems like these
are changing a fair amount from major release to major release, so it
may be a moving target.
And maybe there are other better fixes that I'm not aware of.
More information about the nginx