J. Lewis Muir
October 01, 2019 01:44PM

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


Looking at


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




it works.

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.


nginx mailing list
Subject Author Posted

RHEL Yum repo instructions don't work on RHEL 7

J. Lewis Muir October 01, 2019 01:44PM

Re: RHEL Yum repo instructions don't work on RHEL 7

Konstantin Pavlov October 02, 2019 06:22AM

Re: RHEL Yum repo instructions don't work on RHEL 7

J. Lewis Muir October 02, 2019 11:30AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 99
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready