How to Install EPEL (Extra packages for enterprise linux) on CentOS 8 Server
Steps to install EPEL (Extra packages for enterprise linux) on RHEL/CentOS 8 Server
1. Log into your RHEL/CentOS 8 server as ‘root’.
2. Run the command ‘yum install epel-release’.
3. Enter ‘y’ and press enter if yum ask for confirmation while installing.
4. You can enable and disable the EPEL repo in ‘/etc/yum.repos.d/epel.repo’.
1. You must log into your CentOS 8 server as ‘root’ user to install Extra packages for enterprise linux (epel-release package). Use software like ‘putty’ to connect to your server via SSH.
2. Run the command ‘yum install epel-release’ to install EPEL repo
yum install epel-release
yum install -y epel-release
Use -y option to automatically answer yes for all questions during epel-release installation.
3. Enter ‘y’ and press enter if yum ask for confirmation while installing epel-release. Also enter ‘y’ if yum ask for importing GPG key.
4. Check whether the EPEL repo is enabled in /etc/yum.repos.d/epel.repo
grep ‘enabled’ /etc/yum.repos.d/epel.repo
Change the value enabled=1 to 0 in /etc/yum.repos.d/epel.repo to disable EPEL repository.
Change the value enabled=0 to 1 in /etc/yum.repos.d/epel.repo to enable EPEL repository.
Execute the command ‘yum repolist’ to list all repositories.
repo id repo name status
AppStream CentOS-8 – AppStream 5089
BaseOS CentOS-8 – Base 2843
*epel Extra Packages for Enterprise Linux 8 – x86_64 3671
extras CentOS-8 – Extras 3
Steps to download and install Epel-release rpm
1. Log into your RHEL/CentOS server as ‘root’ user
2. Download EPEL repo rpm file from ‘centos.org’ website using wget command