feat: replace yum with dnf for package installation on RHEL and derivatives

This commit is contained in:
Simon Larsen
2025-04-03 18:30:21 +01:00
parent 07d7513bd9
commit 8b75196a19

View File

@@ -52,11 +52,7 @@ install_system_packages() {
sudo apt-get install -y $REQUIRED_PACKAGES
elif [[ ${DISTRIB} = "fedora"* ]] || [[ ${DISTRIB} = "almalinux"* ]] || [[ ${DISTRIB} = "rockylinux"* ]] || [[ ${DISTRIB} = "rhel"* ]]; then
print_info "Updating package cache..."
if [[ ${DISTRIB} = "rhel"* ]]; then
print_info "Enabling EPEL repository for RHEL..."
sudo yum install -y epel-release
fi
sudo yum install -y $REQUIRED_PACKAGES
sudo dnf install -y $REQUIRED_PACKAGES
else
print_error "Unsupported Linux distribution: $DISTRIB"
exit 1