EPEL repository on rhel 7.4

Latest response

Can not activate EPEL repository. How can we do it

Responses

Hi Lalan, to activate the EPEL repository on RHEL 7.4 open a terminal and execute the following commands :
sudo rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum update

Cheers :)
Christian

Confirmed working on RHEL 7.5

I confirm too; it works with RHEL 7.5

Thank for the reply. I tried with the same command previously too. But I can,t see the EPEL repository in the yum.repos.d. I can see only the redhat.repo [root@lalanrh yum.repos.d]# ls redhat.repo [root@lalanrh yum.repos.d]#

When I try to install "Transmission" I couldn't do also. The error I got is "Detailed errors from the package manager follow: installing not available" How can I solve this. Thank you you again for your response. LF

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

baseurl=http://download.fedoraproject.org/pub/epel/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

baseurl=http://download.fedoraproject.org/pub/epel/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

baseurl=http://download.fedoraproject.org/pub/epel/7/SRPMS

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

baseurl=http://download.fedoraproject.org/pub/epel/testing/7/$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

baseurl=http://download.fedoraproject.org/pub/epel/testing/7/$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

baseurl=http://download.fedoraproject.org/pub/epel/testing/7/SRPMS

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/SRPMS

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

What I've posted above is the default configuration and as you can see, nothing is commented out.

Regards,
Christian

I got installed and activated epel repository but when try to run yum update gave a following error. What will be the reason

[root@localhost yum.repos.d]# yum update Loaded plugins: langpacks, product-id, search-disabled-repos, subscription- : manager epel/x86_64/metalink | 5.7 kB 00:00
epel | 4.3 kB 00:00
(1/3): epel/x86_64/updateinfo | 807 kB 00:11
(2/3): epel/x86_64/group_gz | 170 kB 00:13
(3/3): epel/x86_64/primary_db | 4.8 MB 00:48
Resolving Dependencies --> Running transaction check ---> Package http-parser.x86_64 0:2.7.1-1.el7 will be updated ---> Package http-parser.x86_64 0:2.7.1-3.el7 will be an update ---> Package libgpod.x86_64 0:0.8.2-12.el7 will be updated ---> Package libgpod.x86_64 0:0.8.3-14.el7 will be an update --> Processing Dependency: libusbmuxd.so.2()(64bit) for package: libgpod-0.8.3-14.el7.x86_64 --> Processing Dependency: libplist.so.1()(64bit) for package: libgpod-0.8.3-14.el7.x86_64 --> Processing Dependency: libimobiledevice.so.4()(64bit) for package: libgpod-0.8.3-14.el7.x86_64 --> Finished Dependency Resolution Error: Package: libgpod-0.8.3-14.el7.x86_64 (epel) Requires: libplist.so.1()(64bit) Available: libplist-1.10-4.el7.x86_64 (rhel-7-desktop-rpms) libplist.so.1()(64bit) Installed: libplist-1.12-3.el7.x86_64 (@anaconda/7.4) ~libplist.so.3()(64bit) Error: Package: libgpod-0.8.3-14.el7.x86_64 (epel) Requires: libusbmuxd.so.2()(64bit) Available: usbmuxd-1.0.8-11.el7.x86_64 (rhel-7-desktop-rpms) libusbmuxd.so.2()(64bit) Installed: usbmuxd-1.1.0-1.el7.x86_64 (@anaconda/7.4) Not found Error: Package: libgpod-0.8.3-14.el7.x86_64 (epel) Requires: libimobiledevice.so.4()(64bit) Available: libimobiledevice-1.1.5-6.el7.x86_64 (rhel-7-desktop-rpms) libimobiledevice.so.4()(64bit) Installed: libimobiledevice-1.2.0-1.el7.x86_64 (@anaconda/7.4) ~libimobiledevice.so.6()(64bit)

yum can be configured to try to resolve such errors by temporarily enabling disabled repos and searching for missing dependencies. To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf

Error: Package: libgpod-0.8.3-14.el7.x86_64 (epel) Requires: libplist.so.1()(64bit) Available: libplist-1.10-4.el7.x86_64 (rhel-7-desktop-rpms) libplist.so.1()(64bit) Installed: libplist-1.12-3.el7.x86_64 (@anaconda/7.4) ~libplist.so.3()(64bit) Error: Package: libgpod-0.8.3-14.el7.x86_64 (epel) Requires: libusbmuxd.so.2()(64bit) Available: usbmuxd-1.0.8-11.el7.x86_64 (rhel-7-desktop-rpms) libusbmuxd.so.2()(64bit) Installed: usbmuxd-1.1.0-1.el7.x86_64 (@anaconda/7.4) Not found Error: Package: libgpod-0.8.3-14.el7.x86_64 (epel) Requires: libimobiledevice.so.4()(64bit) Available: libimobiledevice-1.1.5-6.el7.x86_64 (rhel-7-desktop-rpms) libimobiledevice.so.4()(64bit) Installed: libimobiledevice-1.2.0-1.el7.x86_64 (@anaconda/7.4) ~libimobiledevice.so.6()(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest [root@localhost yum.repos.d]#

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

Can I disable the rhel-7-desktop-rpms and see. Please let me know the reason for this error

This would completely make no sense : you won't get updates for the system any longer ... so please don't do that !

Regards,
Christian

I enable all URLs of epel amd epel-testing repo, but the same error.

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

I removed both repositories [root@localhost yum.repos.d]# rm epel.repo rm: remove regular file ‘epel.repo’? y [root@localhost yum.repos.d]# rm epel-testing.repo rm: remove regular file ‘epel-testing.repo’? y now the yum update is working smoothly

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

Though I can install EPEL repo, when I run the yum update I get the following error [root@lalanrhl /]# yum update Loaded plugins: langpacks, product-id, search-disabled-repos, subscription- : manager epel/x86_64/metalink | 5.0 kB 00:00
epel | 4.3 kB 00:00
(1/3): epel/x86_64/updateinfo | 809 kB 00:13
(2/3): epel/x86_64/group_gz | 170 kB 00:16
(3/3): epel/x86_64/primary_db | 4.8 MB 02:05
Resolving Dependencies --> Running transaction check ---> Package http-parser.x86_64 0:2.7.1-1.el7 will be updated ---> Package http-parser.x86_64 0:2.7.1-3.el7 will be an update ---> Package libgpod.x86_64 0:0.8.2-12.el7 will be updated ---> Package libgpod.x86_64 0:0.8.3-14.el7 will be an update --> Processing Dependency: libusbmuxd.so.2()(64bit) for package: libgpod-0.8.3-14.el7.x86_64 --> Processing Dependency: libplist.so.1()(64bit) for package: libgpod-0.8.3-14.el7.x86_64 --> Processing Dependency: libimobiledevice.so.4()(64bit) for package: libgpod-0.8.3-14.el7.x86_64 --> Finished Dependency Resolution Error: Package: libgpod-0.8.3-14.el7.x86_64 (epel) Requires: libplist.so.1()(64bit) Available: libplist-1.10-4.el7.x86_64 (rhel-7-desktop-rpms) libplist.so.1()(64bit) Installed: libplist-1.12-3.el7.x86_64 (@anaconda/7.4) ~libplist.so.3()(64bit) Error: Package: libgpod-0.8.3-14.el7.x86_64 (epel) Requires: libusbmuxd.so.2()(64bit) Available: usbmuxd-1.0.8-11.el7.x86_64 (rhel-7-desktop-rpms) libusbmuxd.so.2()(64bit) Installed: usbmuxd-1.1.0-1.el7.x86_64 (@anaconda/7.4) Not found Error: Package: libgpod-0.8.3-14.el7.x86_64 (epel) Requires: libimobiledevice.so.4()(64bit) Available: libimobiledevice-1.1.5-6.el7.x86_64 (rhel-7-desktop-rpms) libimobiledevice.so.4()(64bit) Installed: libimobiledevice-1.2.0-1.el7.x86_64 (@anaconda/7.4) ~libimobiledevice.so.6()(64bit)

yum can be configured to try to resolve such errors by temporarily enabling disabled repos and searching for missing dependencies. To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf

Error: Package: libgpod-0.8.3-14.el7.x86_64 (epel) Requires: libplist.so.1()(64bit) Available: libplist-1.10-4.el7.x86_64 (rhel-7-desktop-rpms) libplist.so.1()(64bit) Installed: libplist-1.12-3.el7.x86_64 (@anaconda/7.4) ~libplist.so.3()(64bit) Error: Package: libgpod-0.8.3-14.el7.x86_64 (epel) Requires: libusbmuxd.so.2()(64bit) Available: usbmuxd-1.0.8-11.el7.x86_64 (rhel-7-desktop-rpms) libusbmuxd.so.2()(64bit) Installed: usbmuxd-1.1.0-1.el7.x86_64 (@anaconda/7.4) Not found Error: Package: libgpod-0.8.3-14.el7.x86_64 (epel) Requires: libimobiledevice.so.4()(64bit) Available: libimobiledevice-1.1.5-6.el7.x86_64 (rhel-7-desktop-rpms) libimobiledevice.so.4()(64bit) Installed: libimobiledevice-1.2.0-1.el7.x86_64 (@anaconda/7.4) ~libimobiledevice.so.6()(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest I tried to fix it even after installing a fresh copy of 7.4 system. Still it didn't work and gave the same result. I agree with your final comment "In other words this means that they are (currently) not compatible with packages that are installed on the RHEL 7.4 system". We will wait and see till they fix the bug. Thank you Lalan I thin that your

Well, I don't think that this can considered to be a bug ... I think it is more or less a matter of configuration generally.

Regards,
Christian

I wanted to get the package "transmission" installed via EPEL. though there is this error wit yum update, the package can be downloaded and it is working perfectly.

When you use the --skip-broken option and there are no dependency problems for that very special Transmission package or when you temporarily deactivate the other repos, then of course you can download and install it properly.

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.

This is a good idea ... the EPEL testing channel is disabled by default and you should only enable it temporarily when there is a problem with a package from the stable channel and the newer package from the testing channel solves it.

Regards,
Christian

I got the problem fixed. epel-testing.repo is disable deftly. It should be enabled. Then the error message want get. Thanks for the concern and helping me out. regards.

You're welcome Lalan,

We're glad when we can help.

Cheers :)
Christian

If you have proxy, you must edit "/etc/yum.conf" and add: proxy=http://: proxy_username= proxy_password=

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

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

My company firewall doesn't allow my server to talk dl.fedoraproject.org I can get all updates from RedHat. Is there a work around ? regards, Hau

Hi Hau, a correct and legal workaround ? No - if you want to use the repo, ask your system admin to allow access. :)

Regards,
Christan

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.