How To Install elrepo-release on Rocky Linux 8

In this tutorial we learn how to install elrepo-release on Rocky Linux 8. elrepo-release is ELRepo.org Community Enterprise Linux Repository release file

Introduction

In this tutorial we learn how to install elrepo-release on Rocky Linux 8.

What is elrepo-release

This package contains yum configuration for the ELRepo.org Community Enterprise Linux Repository, as well as the public GPG keys used to sign packages.

We can use yum or dnf to install elrepo-release on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install elrepo-release.

Install elrepo-release on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install elrepo-release using dnf by running the following command:

sudo dnf -y install elrepo-release

Install elrepo-release on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install elrepo-release using yum by running the following command:

sudo yum -y install elrepo-release

How To Uninstall elrepo-release on Rocky Linux 8

To uninstall only the elrepo-release package we can use the following command:

sudo dnf remove elrepo-release

elrepo-release Package Contents on Rocky Linux 8

/etc/pki/elrepo
/etc/pki/elrepo/SECURE-BOOT-KEY-elrepo.org.der
/etc/pki/rpm-gpg
/etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org
/etc/yum.repos.d
/etc/yum.repos.d/elrepo.repo

References

Summary

In this tutorial we learn how to install elrepo-release on Rocky Linux 8 using yum and dnf.