From 730bb7ab0d58e15137c753201124f461170b789a Mon Sep 17 00:00:00 2001 From: Paul Black <44146804+Techwizz-somboo@users.noreply.github.com> Date: Tue, 8 Apr 2025 16:04:37 -0600 Subject: [PATCH] Remove YUM detection from the linux compile script. YUM is no longer used on RHEL-based distributions as of RHEL 8. RHEL 7 was the last version to support YUM and is EOL as of June 30, 2024, probably doesn't make sense to check for YUM, instead I'd just change the DNF detection log messages to say Fedora/RHEL. --- linux_compile.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/linux_compile.sh b/linux_compile.sh index 859c760..ce3c465 100644 --- a/linux_compile.sh +++ b/linux_compile.sh @@ -24,11 +24,8 @@ install_packages() { log "Detected Debian-based system. Using apt-get to install packages." sudo apt-get update sudo apt-get install -y git make mariadb-client automake g++ libsdl2-dev libmariadb-dev libboost-all-dev libreadline-dev cmake liblua5.4-dev lua5.4 libcrypto++-dev wget libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev libglm-dev || handle_error "Failed to install packages using apt-get." - elif command -v yum >/dev/null; then - log "Detected RHEL-based system. Using yum to install packages." - sudo yum install -y git make mariadb automake gcc-c++ SDL2-devel mariadb-devel boost-devel readline-devel cmake lua-devel lua crypto++-devel wget glfw-devel mesa-libGL-devel mesa-libGLU-devel glm-devel || handle_error "Failed to install packages using yum." elif command -v dnf >/dev/null; then - log "Detected Fedora-based system. Using dnf to install packages." + log "Detected RHEL/Fedora-based system. Using dnf to install packages." sudo dnf install -y git make mariadb automake gcc-c++ SDL2-devel mariadb-devel boost-devel readline-devel cmake lua-devel lua crypto++-devel wget glfw-devel mesa-libGL-devel mesa-libGLU-devel glm-devel || handle_error "Failed to install packages using dnf." elif command -v zypper >/dev/null; then log "Detected SUSE-based system. Using zypper to install packages."