EPEL repository on rhel 7.4
Can not activate EPEL repository. How can we do it
Responses
Alternatively you can add the EPEL repository manually ... to do this, first import the EPEL gpg key.
Execute : sudo rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
Now add the epel repository - execute : sudo nano /etc/yum.repos.d/epel.repo
Copy the following text and paste it into the empty file :
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
Press Ctrl + X to close the file, then press Y and Enter to save the changes.
Now add the epel-testing repository - execute : sudo nano /etc/yum.repos.d/epel-testing.repo
Copy the following text and paste it into the empty file :
[epel-testing]
name=Extra Packages for Enterprise Linux 7 - Testing - $basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-epel7&arch=$basearch
failovermethod=priority
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[epel-testing-debuginfo]
name=Extra Packages for Enterprise Linux 7 - Testing - $basearch - Debug
metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
[epel-testing-source]
name=Extra Packages for Enterprise Linux 7 - Testing - $basearch - Source
metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
Press Ctrl + X to close the file, then press Y and Enter to save the changes.
Update the software sources in order to install packages from the EPEL repository : sudo yum update
Transmission is available in the EPEL repo, so to install it, execute : sudo yum install transmission
Regards,
Christian
Can any please tell me why in default configuration baseurl line are commented out.
baseurl=http://download.fedoraproject.org/pub/epel/testing/7/$basearch baseurl=http://download.fedoraproject.org/pub/epel/testing/7/$basearch/debug baseurl=http://download.fedoraproject.org/pub/epel/testing/7/SRPMSand working with Server hardware using direct internet connection via public ip (using paid subscription on server hardware) And not working for me using proxy internet connection (using developer subscription on Laptop). I have to use "baseurl" lines. It is working fine for me.
Did you disable the RHEL repositories ? I can't see them ... It seems that there are packages in the EPEL repository which would be an 'update' to the installed RHEL ones, but would need other packages as dependency that are not available - and the available ones are not compatible, hence the yum update error message you are receiving here.
Regards,
Christian
Maybe you messed up something in your earlier attempts. I have tested it on two RHEL 7.4 Server installations and everything works as expected : I added the EPEL repository ... sudo yum update runs without any error messages.
Clean up yum, execute : sudo yum clean all, then sudo rm -rf /var/cache/yum and then sudo yum update
Regards,
Christian
The reason for receiving the error messages most probably is that you try to install packages from the EPEL repo which have dependency issues. In other words this means that they are (currently) not compatible with packages that are installed on the RHEL 7.4 system. Reminder : please do not forget to have the basic RHEL repos enabled.
Regards,
Christian
I don't enable testing channel of EPEL repo. It worked fine for me. Please temporary enable all RHEL repo to overcome dependency error.
I was reading the post, and I ran into the same issue as Lalan Fernando. I have added the repo with the file system, but I can not enable it. When I type the command, Subscription-manager repos -enable epel-testing.repo, I get an error message. Subscription-manager repos -enable epel-testing.repo. I get an error epel-testing.rep does not match a valid repository ID. Use “ subscription-manager repos –list” to see valid repositories. When, I do this I see the repo their, but can not enable it. May someone please help me. Thankyou.
Hi Abdel,
This is normal and expected, because EPEL is a 3rd party repository, that cannot be managed with the subscription-manager tool. You can enable or disable a EPEL repository with sudo nano /etc/yum.repos.d/epel.repo. Just change enabled=1 to enabled=0 to disable or enabled=0 to enabled=1 to enable a specific EPEL repository.
Regards,
Christian
Christian,
That is not working. I get this error. Cannot retrieve metalink for repository: epel-source/x86_64. Please verify its path and try again.
Hi Abdel, please make sure that you have the extras-rpms and the optional-rpms repositories enabled :
sudo subscription-manager repos --enable rhel-7-server-extras-rpmssudo subscription-manager repos --enable rhel-7-server-optional-rpms
Clean yum and yum cache : sudo yum clean all | sudo rm -rf /var/cache/yum | sudo yum update
If it doesn't solve your problem, remove and reinstall the EPEL repo and check the entries as described above.
Regards,
Christian
Thank you Christian a lot - Following steps solved my issue
sudo subscription-manager repos --enable rhel-7-server-extras-rpms sudo subscription-manager repos --enable rhel-7-server-optional-rpms
Clean yum and yum cache : sudo yum clean all | sudo rm -rf /var/cache/yum | sudo yum update
Hi Bangaly,
You're welcome ! :) Yes, having these two repositories enabled is the (known) precondition for making use of EPEL :
NOTE for RHEL 7 users with certificate subscriptions
EPEL 7 packages assume that the 'optional' repository (rhel-7-server-optional-rpms for servers) and the 'extras' repository (rhel-7-server-extras-rpms for servers) are enabled.
Regards,
Christian
If we do not have internet on the server and if we do not have active subscription then how can we install and configure epel Suppose my desktop is windows and I’ll connect to the server through putty and my servers are in private network. Is there any possible way that we can download all epel rpms and do some kind of local repo config?
Hi Kiran,
You don't have an active subscription ? Well, then you don't get updates for your system anymore. So, the first thing should be to attach a valid subscription. Of course you can download packages from the EPEL repo and install them manually, but expect to run into (dependency) issues. :)
Regards,
Christian
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
