Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

up vote 3 down vote accepted

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

wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm {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 http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm and it started working. –  Ali Haideri Sep 25 '12 at 12:08

Another alternative is the nginx repository as described on the nginx.org 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.