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 Linode referral link if you plan to buy VPS (it starts at only $10/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...

155 Responses

  1. 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

  2. uma says:

    this is cool. it helps to setup epel.

  3. Sam says:

    Thank you Ravi, you saved my day.

  4. 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 .

  5. 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?