How to enable EPEL on CentOS 8


EPEL means Extra Packages for Enterprise Linux.

EPEL is a volunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages that complement the Fedora-based Red Hat Enterprise Linux (RHEL) and its compatible spinoffs, such as CentOS.

Check your running operating system:

[moore@servdev ~]$ cat /etc/redhat-release 
CentOS Linux release 8.2.2004 (Core) 

[moore@servdev ~]$ uname -a
Linux dev0.lan.comp.com 4.18.0-193.19.1.el8_2.x86_64 #1 SMP Mon Sep 14 14:37:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

EPEL is available (not available by default in RHEL):

[moore@servdev ~]$ dnf search epel
Last metadata expiration check: 0:00:30 ago on Mon 21 Sep 2020 02:56:53 PM UTC.
======================================================= Name Matched: epel ========================================================
epel-release.noarch : Extra Packages for Enterprise Linux repository configuration
epel-rpm-macros.noarch : Extra Packages for Enterprise Linux RPM macros

Check EPEL information:

[moore@servdev ~]$ dnf info epel-release
CentOS-8 - AppStream                                                                               4.0 MB/s | 5.8 MB     00:01    
CentOS-8 - Base                                                                                     11 MB/s | 2.2 MB     00:00    
CentOS-8 - Extras                                                                                   21 kB/s | 8.1 kB     00:00    
bintray--ookla-rhel                                                                                6.4 kB/s | 1.4 kB     00:00    
EPEL YUM repo                                                                                      5.2 MB/s | 8.0 MB     00:01    
Available Packages
Name         : epel-release
Version      : 8
Release      : 8.el8
Architecture : noarch
Size         : 22 k
Source       : epel-release-8-8.el8.src.rpm
Repository   : epel
Summary      : Extra Packages for Enterprise Linux repository configuration
URL          : http://download.fedoraproject.org/pub/epel
License      : GPLv2
Description  : This package contains the Extra Packages for Enterprise Linux (EPEL) repository
             : GPG key as well as configuration for yum.

Name         : epel-release
Version      : 8
Release      : 8.el8
Architecture : noarch
Size         : 23 k
Source       : epel-release-8-8.el8.src.rpm
Repository   : extras
Summary      : Extra Packages for Enterprise Linux repository configuration
URL          : http://download.fedoraproject.org/pub/epel
License      : GPLv2
Description  : This package contains the Extra Packages for Enterprise Linux (EPEL) repository
             : GPG key as well as configuration for yum.

Enable EPEL:

[moore@servdev ~]$ sudo dnf install epel-release
Last metadata expiration check: 1:56:39 ago on Mon 21 Sep 2020 01:01:55 PM UTC.
Dependencies resolved.
===================================================================================================================================
 Package                            Architecture                 Version                        Repository                    Size
===================================================================================================================================
Installing:
 epel-release                       noarch                       8-8.el8                        extras                        23 k

Transaction Summary
===================================================================================================================================
Install  1 Package

Total download size: 23 k
Installed size: 32 k
Is this ok [y/N]: y
Downloading Packages:
epel-release-8-8.el8.noarch.rpm                                                                    658 kB/s |  23 kB     00:00    
-----------------------------------------------------------------------------------------------------------------------------------
Total                                                                                               87 kB/s |  23 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                           1/1 
  Installing       : epel-release-8-8.el8.noarch                                                                               1/1 
warning: /etc/yum.repos.d/epel.repo created as /etc/yum.repos.d/epel.repo.rpmnew

  Running scriptlet: epel-release-8-8.el8.noarch                                                                               1/1 
  Verifying        : epel-release-8-8.el8.noarch                                                                               1/1 
Installed products updated.

Installed:
  epel-release-8-8.el8.noarch                                                                                                      

Complete!

EPEL repository do not force any new package:

[moore@servdev ~]$ sudo yum upgrade
Extra Packages for Enterprise Linux Modular 8 - x86_64                                             182 kB/s | 132 kB     00:00    
Dependencies resolved.
Nothing to do.
Complete!

Repo files are created here:

[moore@servdev ~]$ find /etc/yum.repos.d/ -name '*epel*'
/etc/yum.repos.d/epel.repo
/etc/yum.repos.d/epel-modular.repo
/etc/yum.repos.d/epel-playground.repo
/etc/yum.repos.d/epel-testing-modular.repo
/etc/yum.repos.d/epel-testing.repo
/etc/yum.repos.d/epel.repo.rpmnew

List of enabled repositories:

[moore@servdev ~]$ sudo dnf repolist
repo id                                         repo name
AppStream                                       CentOS-8 - AppStream
BaseOS                                          CentOS-8 - Base
bintray--ookla-rhel                             bintray--ookla-rhel
epel                                            EPEL YUM repo
epel-modular                                    Extra Packages for Enterprise Linux Modular 8 - x86_64
extras                                          CentOS-8 - Extras


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

EN | FR | ES

Search