How to Enable EPEL Repository for RHEL/CentOS 7.x/6.x/5.x

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Hosting referral link if you planning to start your blog ($3.82/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

161 Responses

  1. Ivan richard Nocum says:

    got an error

    –2017-02-11 00:38:58– http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
    Resolving dl.fedoraproject.org (dl.fedoraproject.org)… failed: Name or service not known.
    wget: unable to resolve host address ‘dl.fedoraproject.org’

    • Ravi Saive says:

      @Ivan,

      Check your network, it seems network issue.. Have you added correct DNS Nameserver entries in /etc/resolv.conf file?

  2. JP says:

    I got the error
    [root@jp1_redhat ansi]# yum repolist
    Loaded plugins: product-id, rhnplugin, security, subscription-manager
    This system is receiving updates from Red Hat Subscription Management.
    This system is receiving updates from RHN Classic or RHN Satellite.
    Error: xz compression not available
    [root@jp1_redhat ansi]#

    • Ravi Saive says:

      @Prakash,

      I think you’ve installed non-CentOS version of xz package, first remove it.

      # yum remove xz
      

      And then re-install from the default repositories as shown.

      # yum install xz
      

      I hope it will fix this issue…

  3. priya says:

    Hi Ravi,

    I am getting this error whatever I have installed Trying other mirror.
    https://remi.mirror.wearetriple.com/enterprise/6/safe/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 – “Couldn’t resolve host ‘remi.mirror.wearetriple.com'”. Please may i know how to fix this

    • Ravi Saive says:

      @Priya,

      Please add the DNS Name Servers in /etc/hosts file, if you don’t know DNS, then you can add following line to this file.

      nameserver 8.8.8.8
      
  4. Anthony says:

    This no longer works if I enter the commands for installation on CentOS 7.
    # wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
    # rpm -ivh epel-release-7-8.noarch.rpm
    The download works but then when ever I run yum I get this unknown repo message I do not know how to get rid of and I do not have access the the epel repo

    Loaded plugins: fastestmirror, langpacks
    epel/i386/metalink | 40 kB 00:00:00
    Could not parse metalink https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=i386 error was
    No repomd file

    One of the configured repositories failed (Unknown),
    and yum doesn’t have enough cached data to continue. At this point the only
    safe thing yum can do is fail. There are a few ways to work “fix” this:

    1. Contact the upstream for the repository and get them to fix the problem.

    2. Reconfigure the baseurl/etc. for the repository, to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

    3. Disable the repository, so yum won’t use it by default. Yum will then
    just ignore the repository until you permanently enable it again or use
    –enablerepo for temporary usage:

    yum-config-manager –disable

    4. Configure the failing repository to be skipped, if it is unavailable.
    Note that yum will try to contact the repo. when it runs most commands,
    so will have to try and fail each time (and thus. yum will be be much
    slower). If it is a very temporary problem though, this is often a nice
    compromise:

    yum-config-manager –save –setopt=.skip_if_unavailable=true

    File /var/cache/yum/i386/7/epel/metalink.xml does not exist

  5. uma says:

    this is cool. it helps to setup epel.

  6. Sam says:

    Thank you Ravi, you saved my day.

  7. Jaganath says:

    IF Your graph is not showing just change the TIME ZONE under vi /etc/php.ini

    I faced the issue because my system time zone and cacti time is different .

  8. Tarun says:

    Hey Ravi,

    You want to update the path for CentOS6 repo

    http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
    It is moved from old domain “download.fedoraproject.org”

  1. December 8, 2016

    […] you need to Enable EPEL repository and then install using yum command as […]

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

Join Over 300K+ Linux Users
  1. 202,035
  2. 9,267
  3. 38,621

Are you subscribed?