0 like 0 dislike
199 views

Please log in or register to answer this question.

1 Answer

0 like 0 dislike
answered by (4k points)  

How do I enable EPEL repository on RHEL 8?. EPEL is a repository that provides extra packages for Enterprise Linux. The Fedora EPEL group is responsible for creating and maintaining a high-quality set of additional packages for RHEL, CentOS, Scientific Linux, and Oracle Linux.

RHEL, CentOS, Scientific Linux, and Oracle Linux distributions are designed for performance and stability with a limited number of packages in their Base repositories. If you’re a Developer, there are high chances some of the packages you need are not available. EPEL repository bridge this gap by providing additional stable packages that work for most use cases.

Install EPEL Repository on RHEL 8

As of this writing, RHEL 8 is available in Beta and there is no official release of EPEL repository for it. From my test environment, I was able to use the EPEL repository for RHEL 7 on RHEL 8 machine without any issues. This is not the recommended way but this guide will be updated once EPEL 8 is ready.

In the meantime, you can add EPEL for RHEL 7 by running the command below.

$ sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
 Updating Subscription Management repositories.
 Updating Subscription Management repositories.
 Last metadata expiration check: 21:59:52 ago on Mon 11 Mar 2019 12:35:42 AM EAT.
 epel-release-latest-7.noarch.rpm           5.3 kB/s |  15 kB     00:02    
 Dependencies resolved.
  Package             Arch          Version       Repository           Size
 Installing:
  epel-release        noarch        7-11          @commandline         15 k
 Transaction Summary
 Install  1 Package
 Total size: 15 k
 Installed size: 24 k
 Is this ok [y/N]: y

This will download repository file to /etc/yum.repos.d/epel.repo and enable the repo. You can confirm EPEL repository addition and functionality by running the following command.

$ sudo dnf repolist epel
 Updating Subscription Management repositories.
 Updating Subscription Management repositories.
 Last metadata expiration check: 0:01:14 ago on Mon 11 Mar 2019 10:38:19 PM EAT.
 repo id                                              repo name                                                                                   status
 *epel                                                Extra Packages for Enterprise Linux 7 - x86_64                                              12,881

List packages available on EPEL repository.

sudo dnf --disablerepo="*" --enablerepo="epel" list available

You can filter further to check if required package is available on EPEL repository.

sudo dnf --disablerepo="*" --enablerepo="epel" list available | grep <package>

Example:

$ sudo dnf --disablerepo="*" --enablerepo="epel" list available | grep chromium
 chromium.x86_64                                                     71.0.3578.98-2.el7                                            epel
 chromium-common.x86_64                                              71.0.3578.98-2.el7                                            epel
 chromium-headless.x86_64                                            71.0.3578.98-2.el7                                            epel
 chromium-libs.x86_64                                                71.0.3578.98-2.el7                                            epel
 chromium-libs-media.x86_64                                          71.0.3578.98-2.el7                                            epel

To install package from EPEL repository, just run

sudo dnf --enablerepo="epel" install <package>

Some dependencies may be installed from the Base repositories. There you have it, you can install your favorite packages from the EPEL repository.

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
Welcome to PostgreSQL Database Discussion Forum where you can ask questions and receive answers from other members of the community. Can discuss here Oracle, Postgresql, mariadb , mySQL , AWS , Linux , MSSQL , MongoDB , Greenplum databases related queries ...etc.
...