Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The command sudo yum install nginx returns the error No package nginx available. I've tried this before and it worked but now it doesn't.

Please help!

share|improve this question
Did you search for "nginx package centos 5" anywhere? What results did you get? Did you try the solutions they suggested? What happened? – pjmorse Oct 8 '12 at 1:47
up vote 3 down vote accepted

Sounds like you just need to add in the EPEL repository, do this;

wget {or whatever the filename is based on your version of Centos} rpm -ivh epel-release-6-5.noarch.rpm {or again whatever the filename is]

Then try the YUM again.

share|improve this answer
Thanks! My CentOS version is 5.8. I ran rpm -Uvh and it started working. – Ali Haideri Sep 25 '12 at 12:08

Another alternative is the nginx repository as described on the site.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.