CentOSLinuxTutorials

How To Enable EPEL Repository on CentOS 8

Enable EPEL Repository on CentOS 8

In this tutorial, we will show you how to enable the EPEL repository on CentOS 8. For those of you who didn’t know, EPEL(Extra Packages for Enterprise Linux) is a repo developed by the Fedora project to ensure that there are quality 3rd party packages available for enterprise users such as people who are using RHEL, CentOS, Oracle Linux, and Scientific Linux. EPEL is a community effort to create a repository of high-quality add-on free software packages for RHEL-based distributions. Once you set up the EPEL repository, you can use yum command to install any of close to 7,000 EPEL packages.

Prerequisites

  • A server running one of the following operating systems: CentOS Linux.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • A non-root sudo user or access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

Enable EPEL Repository on CentOS 8

Step 1. First, you need to enable the EPEL repository on your system. You don’t need to configure this repository manually in your yum. Instead, download the following package and install it, which will enable the EPEL repository on your system.

sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

The output result will look like below:

Last metadata expiration check: 0:46:48 ago on Wed 02 Sep 2019 05:46:36 AM UTC.
epel-release-latest-8.noarch.rpm                                                    15 kB/s |  21 kB     00:01    
Dependencies resolved.
===================================================================================================================
 Package                      Arch                   Version                    Repository                    Size
===================================================================================================================
Installing:
 epel-release                 noarch                 8-5.el8                    @commandline                  21 k

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

Total size: 21 k
Installed size: 30 k
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                           1/1 
  Installing       : epel-release-8-5.el8.noarch                                                               1/1 
  Running scriptlet: epel-release-8-5.el8.noarch                                                               1/1 
  Verifying        : epel-release-8-5.el8.noarch                                                               1/1 

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

Complete!

To verify that the EPEL repository has been set up successfully, run the following command to list all available repositories on your system:

yum repolist

The output result will look like below:

repo id                                              repo name                                                             status
*epel                                                Extra Packages for Enterprise Linux 8 - x86_64                        1,238
google-cloud-sdk                                     Google Cloud SDK                                                        906
google-compute-engine                                Google Compute Engine                                                     6
rhui-codeready-builder-for-rhel-8-x86_64-rhui-rpms   Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs) from RHUI    1,526
rhui-rhel-8-for-x86_64-appstream-rhui-rpms           Red Hat Enterprise Linux 8 for x86_64 - AppStream from RHUI (RPMs)    6,003
rhui-rhel-8-for-x86_64-baseos-rhui-rpms              Red Hat Enterprise Linux 8 for x86_64 - BaseOS from RHUI (RPMs)       2,172

Congratulations! You have successfully enabled the EPEL repo. Thanks for using this tutorial to add the EPEL repository to your CentOS 8 system. For additional help or useful information, we recommend you check the official EPEL website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

r00t

r00t is a seasoned Linux system administrator with a wealth of experience in the field. Known for his contributions to idroot.us, r00t has authored numerous tutorials and guides, helping users navigate the complexities of Linux systems. His expertise spans across various Linux distributions, including Ubuntu, CentOS, and Debian. r00t's work is characterized by his ability to simplify complex concepts, making Linux more accessible to users of all skill levels. His dedication to the Linux community and his commitment to sharing knowledge makes him a respected figure in the field.
Back to top button