Unable to use RPM packages from CentOS RPM repository

I’m trying to download packages from this repository, http://nginx.org/packages/centos/7/x86_64/ but all of the downloads are invalid RPM packages. For example:

$ rpm -qpi nginx-1.10.0-1.el7.ngx.x86_64.rpm
error: nginx-1.10.0-1.el7.ngx.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 7bd9bf62: BAD
error: nginx-1.10.0-1.el7.ngx.x86_64.rpm: not an rpm package (or package manifest)

The file is the correct size and is binary data. File reports that it is an RPM package.

$ file nginx-1.10.0-1.el7.ngx.x86_64.rpm
nginx-1.10.0-1.el7.ngx.x86_64.rpm: RPM v3.0 bin i386/x86_64 nginx-1:1.10.0-1.el7.ngx

This is happening for all the packages in that repo.

Hmm, on Fedora 43


$ wget https://nginx.org/packages/centos/7/x86_64/RPMS/nginx-1.10.0-1.el7.ngx.x86_64.rpm
Saving 'nginx-1.10.0-1.el7.ngx.x86_64.rpm'
HTTP response 200 OK [https://nginx.org/packages/centos/7/x86_64/RPMS/nginx-1.10nginx-1.10.0-1.el7.n 100% [=============================>]  640.28K    --.-KB/s
                          [Files: 1  Bytes: 640.28K [1.42]
$ file nginx-1.10.0-1.el7.ngx.x86_64.rpm 
nginx-1.10.0-1.el7.ngx.x86_64.rpm: RPM v3.0 bin i386/x86_64 nginx-1:1.10.0-1.el7.ngx
$ rpm -qi nginx-1.10.0-1.el7.ngx.x86_64.rpm
warning: nginx-1.10.0-1.el7.ngx.x86_64.rpm: Header OpenPGP V4 RSA/SHA1 signature, key ID abf5bd827bd9bf62: NOKEY
Name        : nginx
Epoch       : 1
Version     : 1.10.0
Release     : 1.el7.ngx
Architecture: x86_64
Install Date: (not installed)
Group       : System Environment/Daemons
Size        : 2248560
License     : 2-clause BSD-like license
Signature   :
              RSA/SHA1, Tue 26 Apr 2016 16:30:03 BST, Key ID abf5bd827bd9bf62
              RSA/SHA1, Tue 26 Apr 2016 16:30:03 BST, Key ID abf5bd827bd9bf62
Source RPM  : nginx-1.10.0-1.el7.ngx.src.rpm
Build Date  : Tue 26 Apr 2016 16:11:08 BST
Build Host  : centos7-amd64-builder-builder.gnt.nginx.com
Vendor      : Nginx, Inc.
URL         : http://nginx.org/
Summary     : High performance web server
Description :
nginx [engine x] is an HTTP and reverse proxy server, as well as
a mail proxy server.

But it has to be said that CentOS 7 is EOL and there hasn’t been any updated nginx packages since May 2024.

1 Like