Centos 6 Yum source settings

Source: Internet
Author: User
Tags metalink

If you want to get RHEL's high-quality, high-performance, high-reliability, and easy-to-use (the key is free) Software Package update function, the epel (extra packages for Enterprise Linux) launched by the Fedora Project) this is exactly for you. Epel (http://fedoraproject.org/wiki/EPEL) is a program built by the fedora community to provide high-quality software packages for RHEL and derivative releases such as centos and scientific Linux. Installed with epel, just like on fedora, you can use yum
Install package-Name and install the software at will.

1. Install epel6 Yum source in RHEL/centos/SL Linux 6.x:

32-bit System Selection:

Rpm-IVH http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm

64-bit System Selection:

Rpm-IVH http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm

Import key:
rpm
--import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

2. By default, the epel. Repo and epel-testing.repo configuration files are created under/etc/yum. Repos. d/. The content of epel. repo is as follows:

[Epel]

Name = extra packages for Enterprise Linux 6-$ basearch

# Baseurl = http://download.fedoraproject.org/pub/epel/6/?basearch

Using list = https://mirrors.fedoraproject.org/metalink? Epel-6 & arch = $ basearch

Failovermethod = Priority

Enabled = 1

Gpgcheck = 1

Gpgkey = file: // etc/pki/rpm-GPG/RPM-GPG-KEY-EPEL-6

[Epel-debuginfo]

Name = extra packages for Enterprise Linux 6-$ basearch-Debug

# Baseurl = http://download.fedoraproject.org/pub/epel/6/$basearch/debug

Using list = https://mirrors.fedoraproject.org/metalink? Epel-debug-6 & arch = $ basearch

Failovermethod = Priority

Enabled = 0

Gpgkey = file: // etc/pki/rpm-GPG/RPM-GPG-KEY-EPEL-6

Gpgcheck = 1

[Epel-source]

Name = extra packages for Enterprise Linux 6-$ basearch-Source

# Baseurl = http://download.fedoraproject.org/pub/epel/6/SRPMS

Using list = https://mirrors.fedoraproject.org/metalink? Epel-source-6 & arch = $ basearch

Failovermethod = Priority

Enabled = 0

Gpgkey = file: // etc/pki/rpm-GPG/RPM-GPG-KEY-EPEL-6

Gpgcheck = 1

If you want to use a newer software, you can enable the [epel-testing] source and change enabled = 0 to Enabled = 1.

3. Test the installation of nginx in Yum:

Yum install nginx

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.