Hello! I'd like to report a problem with the RHEL/CentOS instructions at
https://nginx.org/en/linux_packages.html#RHEL-CentOS 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: baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ On my RHEL 7 machine, that variable is evaluating to 7Workstation Looking at http://nginx.org/packages/centos/ 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 baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ to baseurl=http://nginx.org/packages/centos/7/$basearch/ it works. There's more info at https://access.redhat.com/solutions/1256473 I have a default /etc/yum.conf 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 changed. 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 http://nginx.org/packages/centos/ 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. Thanks! Lewis _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx