[Solved] “fedora-release conflicts with epel-release-5-4.noarch” on Fedora 15

When I tried to add EPEL repository in Fedora 15. I got this output:

[root@fedora dpac]# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Retrieving http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
warning: /var/tmp/rpm-tmp.DNqs2d: Header V3 DSA/SHA1 Signature, key ID 217521f6: NOKEY
error: Failed dependencies:
fedora-release conflicts with epel-release-5-4.noarch

You can resolve the error by manually extracting the rpm and copying the repository files into their corresponding directory. I recommend doing this in /tmp because extracting rpm file creates a mess in pwd. Also, please copy and paste the commands for accuracy (notice the ‘.’ infront of /etc for first two path arguments but not for the third)

cd /tmp
wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm2cpio epel-release-5-4.noarch.rpm | cpio -idmv
cp ./etc/yum.repos.d/epel-testing.repo ./etc/yum.repos.d/epel.repo /etc/yum.repos.d/
cp ./etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL /etc/pki/rpm-gpg/
yum update

This should add and enable the EPEL repository for you.

  • Dollar Soup

    This worked for me on Fedora 16 — thanks very much. 

  • Somumanu

    thanks it’s working now.

  • Esteban

    thanx

  • Sunil Markam

    Je baatttt!! Thanks for the sharing -Sunil