Home RHEL 8/9 - Enabling the EPEL Repository
Post
Cancel

RHEL 8/9 - Enabling the EPEL Repository

This script will install the appropriate EPEL repository for your version of RHEL.

1
2
3
4
5
#!/bin/bash
MAJOR_VERSION=$(cat /etc/os-release | grep "VERSION_ID" | \
  cut -f 2 -d "=" | cut -f 2 -d '"' | cut -f 1 -d '.')

sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$MAJOR_VERSION.noarch.rpm
This post is licensed under CC BY 4.0 by the author.