CentOS/dnf
< CentOS
List All Available Packages:
dnf list available --enablerepo=epel
Search for a Specific Package:
# Replace package-name with the name of the package you wish to find: dnf search package-name --enablerepo=epel
Install a Package:
# Replace package-name with the package to install: dnf install package-name --enablerepo=epel
Check for Updates on Installed EPEL Packages:
dnf check-update --enablerepo=epel
If you need to remove the EPEL repositories, use the following commands:
# Remove EPEL: sudo dnf remove epel-release # Remove EPEL Next: sudo dnf remove epel-next-release
References: