CentOS Yum installation nginx hint No package Nginx available

Source: Internet
Author: User

CentOS Yum installation nginx prompt No package nginx available problem, for this problem we are the following is the solution to introduce it, hope that the following can help you.

Cause of the problem:

Nginx is located in the third party's Yum source and not in the official CentOS Yum source

Workaround:

Installing Epel (Extra Packages for Enterprise Linux)

A, go to Epel website Http://fedoraproject.org/wiki/EPEL download

b, my system is centos5.7,cpu is x86_64, so I downloaded is wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

If it is CENTOS6, you should download wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

C, installation Epel

RPM-IVH epel-release-5-4.noarch.rpm

Run the Yum install again, it will prompt the installation to succeed

Note:

The installation of the Epel is related to the CentOS system version, the CPU hardware architecture,

View the system version (LSB-RELEASE-A),

View CPU hardware architecture (ARCH)

Epel It is Rhel's Fedora software repository that provides high-quality software packages for Rhel and derivative distributions such as CentOS, scientific Linux, and more. Loaded with EPEL, just like in Fedora, you can install the software by using Yum install Package-name.


CentOS Yum installation nginx hint No package Nginx available

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.