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!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
nginx isn’t in the ‘normal’ Centos repositories. You can install the EPEL repository to gain access to it. There’s a how to guide here – and a more up to date one here.
Once you have added the EPEL repo, you can then install with the yum command you referenced.