Upgrade to latest nginx on CentOS 7

The nginx version that is shipped with CentOS epel repository is quite old.

To upgrade your nginx installation you need to create a repository and add nginx servers to it.

to do so create a file called nginx.repo on /etc/yum.repos.d/nginx.repo and place following content in it.

then simply stop nginx service and run the yum update command.

this will be using the latest stable package. if you want to use the latest mainline release you need to tell yum to use that one instead by running:

Incoming search terms:

  • upgrade nginx yum

Leave a comment

Leave a Reply