Search code examples
fedoraepel

I attempted to enable the EPEL repo on my Fedora 22 machine and I broke it, now errors are thrown


I made the attempt at enabling EPEL on my Fedora 22 machine by running

wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

Then

sudo rpm -ivh epel-release-7-5.noarch.rpm

And now when I run

dnf repolist

I get the following

[sinux1@horrible-host ~]$ sudo dnf repolist
Extra Packages for Enterprise Linux 7 - x86_64  1.8 MB/s | 9.0 MB     00:05    
Failed to open: /var/cache/dnf/epel-2b6dfc5904c26562/repodata/49c4e3bd54f19136521be9b254830c954369cc22ce1b661db502ebef13b0004c-updateinfo.xml.bz2.
[sinux1@horrible-host ~]$ 

I'm stuck and not sure what my next step is. How can I reverse what I did, and what would have been the proper way of enabling EPEL? Thanks for any input


Solution

  • This is what appears to have worked for me.

    Remove the epel repo

    rm -rf /etc/yum.repos.d/epel*

    then try install epel via dnf

    dnf clean all dnf install epel-release