How to install the Epel source on CentOS 5/6

Source: Internet
Author: User
Tags yum repolist

Original: http://os.51cto.com/art/201312/420725.htm How to install Epel source on CentOS 5/6 2013-12-04 14:45 Translator: Neartan Linux Chinafont Size:T | T

We can easily get tens of thousands of software from the Epel source that are not available on the CentOS self-sourced source via the Yum command. In the text, I'll show you how to install the Epel source under CentOS.

AD:

What is EPEL?

The EPEL (Extra Packages for Enterprise Linux, an additional software package for Enterprises Linux) is a repository project maintained by the Fedora team, providing Rhel/centos with packages that they do not provide by default. This source is compatible with Rhel and derivative versions such as CentOS and Scientific Linux.

We can easily get tens of thousands of software from the Epel source that are not available on the CentOS self-sourced source via the Yum command. Most of the packages provided by Epel are based on their corresponding Fedora packages and do not conflict with or replace files with the Enterprise Linux distribution software.

More details about the EPEL project can be found at the following website: Https://fedoraproject.org/wiki/EPEL

In the text, I'll show you how to install the Epel source under CentOS.

hint -Rhel/centos system has many third-party sources, more popular such as Rpmforge,rpmfusion,epel,remi and so on.

However, it is important to note that if the system adds more than one third-party source, there may be a conflict-a package can be fetched from multiple sources, and some sources will replace the system's underlying package, potentially creating unexpected errors. There are rpmforge and Epel that are known to have conflicts.

For these issues we recommend that you adjust the priority of the source or a selective installation source, but this requires complex operations, and if you are unsure how to do this, we recommend that you install only a third-party source.

Installing Epel on CentOS

To install Epel, we will first download the Epel RPM installation package.

The 6.x and 5.x versions of the download page under Centos/rhel are as follows:

Http://download.fedoraproject.org/pub/epel/6/i386/repoview/epel-release.html

Http://download.fedoraproject.org/pub/epel/5/i386/repoview/epel-release.html

The above URLs may be redirected to a specific mirror station for faster download times. This page contains download links that can be obtained directly to the RPM package. The direct download link is as follows:

http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

Choose the right one based on your CentOS version.

Please note that the Epel installation package is compiled independently, so it can be installed on 32-bit and 64-bit systems.

1. Confirm the version of your CentOS

First confirm your CentOS version with the following command

    1. $ cat/etc/redhat-release
    2. CentOS Release 6.4 (Final)

2. Download the Epel RPM installation package

Now download the Epel version of the CentOS version from the address above

    1. $ wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

3. Installing Epel

Install the Epel package with the following command

    1. $ sudo rpm-ivh epel-release-6-8.noarch.rpm

Or

    1. $ sudo rpm-ivh epel-release*

5. Check the Epel source

After installing the Epel source, use the Yum command to check whether the source list is added

  1. # yum Repolist
  2. Loaded Plugins:fastestmirror
  3. Loading mirror speeds from cached hostfile
  4. * base:mirrors.vonline.vn
  5. * Epel:buaya.klas.or.id
  6. * extras:centos-hn.viettelidc.com.vn
  7. * updates:mirrors.fibo.vn
  8. Repo ID Repo name status
  9. Base CentOS-6-Base 6,381
  10. Epel Extra Packages for Enterprise Linux 6-x86_64 10,023
  11. Extras CentOS-6-Extras 13
  12. Nginx Repo 47
  13. Updates CentOS-6-Updates 1,555
  14. repolist:18,019

Epel has been listed after repo, and the display provides tens of thousands of packages, so Epel has been installed on your centos.

The configuration of the Epel source is installed into the /etc/yum.repos.d/epel.repo file.

Now try to get the package from Epel

    1. $ sudo yum install Htop

via:http://www.binarytides.com/setup-epel-repository-centos/

"Editor's recommendation"

    1. LNMP One-click Installation Tool on CentOS centmin Mod
    2. RPM Options for querying installation package information under Linux
    3. Fedora Beta Download installation trial
    4. CentOS 6.4 Builds VPN server side
"Editor: Running Ice cream TEL: (010) 68476606"

Original: How to install Epel source on CentOS 5/6 back to operating system homepage

How to install the Epel source on CentOS 5/6

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.