Install the latest version of Nginx on CentOS 6 and CentOS 7 using Yum

I noticed that on my CentOS 6 box, I was still running nginx 1.0.15. I wanted to upgrade to nginx 1.10.1. However, when I ran sudo yum update nginx, it showed that there were no Packages marked for Update. Luckily, getting the latest version through Yum is straight-forward and only requires adding a new repo….