How do you enable the EPEL repository in CentOS?
Learn how to enable the EPEL repository in CentOS to access additional software packages and enhance your system's functionality with this simple guide.
To enable the EPEL (Extra Packages for Enterprise Linux) repository in CentOS, follow these steps:
1. **Update your system packages**:
sudo yum update -y
2. **Install the EPEL repository package**:
For CentOS 7:
sudo yum install epel-release -y
For CentOS 8, you may need to use the `dnf` package manager:
sudo dnf install epel-release -y
3. **Verify that the EPEL repository is enabled**:
sudo yum repolist
You should see `epel` in the list of repositories.
Now you can install packages from the EPEL repository using `yum` or `dnf`.
What's Your Reaction?