From 3694c7be13dff19b83133a22cb3a83554ad9591d Mon Sep 17 00:00:00 2001 From: bryan Date: Fri, 4 Oct 2024 01:18:33 -0400 Subject: [PATCH] Add external SUSE repo for libgl1 --- installJRMC | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/installJRMC b/installJRMC index d90c0e1..f76747e 100755 --- a/installJRMC +++ b/installJRMC @@ -131,7 +131,7 @@ execute() { init() { debug "Running: ${FUNCNAME[0]}" - declare -g ID RPM_MGR ARCH + declare -g ID RPM_MGR ARCH OS_NAME declare -ga PKG_INSTALL PKG_REMOVE PKG_UPDATE PKG_QUERY echo "Starting installJRMC" @@ -147,6 +147,8 @@ init() { exit 1 fi + OS_NAME="${NAME// /_}" + # Detect architecture and translate to MC convention ARCH=$(uname -m) case $ARCH in @@ -1710,16 +1712,25 @@ main() { install_package epel-release fi if ! "${PKG_QUERY[@]}" rpmfusion-free-release &>/dev/null; then + echo "Installing the RPMFusion repository" install_package --no-install-check \ "https://download1.rpmfusion.org/free/el/rpmfusion-free-release-$VERSION_ID.noarch.rpm" fi ;; fedora) if ! "${PKG_QUERY[@]}" rpmfusion-free-release &>/dev/null; then + echo "Installing the RPMFusion repository" install_package --no-install-check \ "https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$VERSION_ID.noarch.rpm" fi ;; + suse) + if ! zypper repos | grep -q "X11:XOrg"; then + echo "Installing the X11 repository" + execute sudo zypper --non-interactive --quiet addrepo \ + "https://download.opensuse.org/repositories/X11:/XOrg/$OS_NAME/X11:XOrg.repo" + fi + ;; esac if (( REPO_INSTALL_SWITCH )); then