[CentOS Stream 8]: Error: Unknown repo epel [Solved]

Updated on November 22, 2022

I was given a task to install OpenStack Yoga release on CentOS Stream 8 Server (minimal Server). I followed the Server World guide for the installation. While installing Keystone using the below command, encountered the error “Unknown repo epel“.

# dnf --enablerepo=centos-openstack-yoga,epel,powertools -y install openstack-keystone python3-openstackclient httpd mod_ssl python3-mod_wsgi python3-oauth2client mod_ssl
Error: Unknown repo: 'epel'

Solution: EPEL (Extra Packages for Enterprise Linux) is an open-source and community based repository project from FEDORA team. The repository provides a high quality set of additional packages for Enterprise Linux including RHEL, CentOS, Alma Linux and Rocky Linux.

How to Install EPEL repository on CentOS Stream 8

Step 1: To install EPEL repo on CentOS Stream 8, run the below command:

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

[OR]

# dnf config-manager --set-enabled PowerTools
# dnf install epel-release

Step 2: Update the software packages

# dnf update

Step 3: Verify the EPEL repo is enabled

# dnf repolist
repo id                       repo name
appstream                     CentOS Linux 8 - AppStream
baseos                        CentOS Linux 8 - BaseOS
epel                          Extra Packages for Enterprise Linux 8 - x86_64
epel-modular                  Extra Packages for Enterprise Linux Modular 8 - x86_64
extras                        CentOS Linux 8 - Extras
powertools                    CentOS Linux 8 - PowerTools

Was this article helpful?

Related Articles

Leave a Comment