Upgrading Nginx on RHEL7

Hello all,

Im new to nginx and its installed on RHEL 7. WE are in version 1.16.1 and I tired to update to latest version.

I tried to run yum install nginx where I get error as below

failure: repodata/repomd.xml from nginx-stable: [Errno 256] No more mirrors to try.
http://nginx.org/packages/rhel/7/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 403 - Forbidden

I suspect the issue is because of firewall issue… I need to add the nginx link to the proxy list.

So thought of downloading the rpm package from below link into my local machine and moved to the RHEL server and install on it my own.

(Index of /packages/rhel/7/x86_64/RPMS/)

I dont see any documentation with the list of steps to install from rpm. Do anybody have any idea about the steps involved in this upgrade? Please let me know.

Thanks

1 Like

This should be done with a standard rpm command. rpm -Uvh <nginx_package>.rpm should handle an install of upgrade of the package.