Add EPEL manually if system package unavailable
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user