From 8b75196a191d7c8ac66f61f8906130714c4dc987 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Thu, 3 Apr 2025 18:30:21 +0100 Subject: [PATCH] feat: replace yum with dnf for package installation on RHEL and derivatives --- configure.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/configure.sh b/configure.sh index d9c749bc5e..392aec6bd7 100644 --- a/configure.sh +++ b/configure.sh @@ -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