Add EPEL manually if system package unavailable

This commit is contained in:
2025-04-12 12:42:14 -04:00
parent d3b3c020c3
commit ab45d26c12

View File

@@ -552,7 +552,11 @@ install_external_repos() {
centos) centos)
if ! command -v dpkg &>/dev/null; then if ! command -v dpkg &>/dev/null; then
echo "Adding EPEL repository" echo "Adding EPEL repository"
install_package epel-release if ! install_package epel-release; then
# If epel-release is not available, install it manually
install_package --no-install-check \
"https://dl.fedoraproject.org/pub/epel/epel-release-latest-${VERSION_ID%%.*}.noarch.rpm"
fi
fi fi
if ! "${PKG_QUERY[@]}" rpmfusion-free-release &>/dev/null; then if ! "${PKG_QUERY[@]}" rpmfusion-free-release &>/dev/null; then
echo "Installing the RPMFusion repository" echo "Installing the RPMFusion repository"