From cb6e0f9cb65e5fc16434d5130081932c5d253e18 Mon Sep 17 00:00:00 2001 From: solomoncyj Date: Fri, 8 Nov 2024 03:07:28 +0800 Subject: [PATCH] Add OpenSUSE to list of linutil added to package managers (#820) * Add OpenSUSE to list of linutil added to package managers * Update README.md * set up install script * Update linutil-installer.sh * Update linutil-installer.sh * fixes * Update linutil-installer.sh * Update linutil-installer.sh * Update linutil-installer.sh * Update linutil-installer.sh * Update README.md * Update linutil-installer.sh * Update README.md * Update linutil-installer.sh * Apply suggestions from code review Co-authored-by: Adam Perkowski * Update core/tabs/applications-setup/linutil-installer.sh Co-authored-by: JEEVITHA KANNAN K S * Update linutil-installer.sh * Update linutil-installer.sh * Update README.md --------- Co-authored-by: Adam Perkowski Co-authored-by: JEEVITHA KANNAN K S Co-authored-by: Chris Titus --- README.md | 8 ++++++++ core/tabs/applications-setup/linutil-installer.sh | 9 ++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f8aa0ea3..33bb3bdb 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,15 @@ paru -S linutil Replace `paru` with your preferred helper and `linutil` with your preferred package. +
+ OpenSUSE + +Linutil can be installed on OpenSUSE with: +```bash +sudo zypper install linutil +``` +
Cargo diff --git a/core/tabs/applications-setup/linutil-installer.sh b/core/tabs/applications-setup/linutil-installer.sh index 7b02af7c..13776fc3 100755 --- a/core/tabs/applications-setup/linutil-installer.sh +++ b/core/tabs/applications-setup/linutil-installer.sh @@ -25,6 +25,10 @@ installLinutil() { esac printf "%b\n" "${GREEN}Installed successfully.${RC}" ;; + zypper) + "$ESCALATION_TOOL" "$PACKAGER" install linutil -y + printf "%b\n" "${GREEN}Installed successfully.${RC}" + ;; *) printf "%b\n" "${RED}There are no official packages for your distro.${RC}" printf "%b" "${YELLOW}Do you want to install the crates.io package? (y/N): ${RC}" @@ -40,11 +44,6 @@ installLinutil() { dnf) "$ESCALATION_TOOL" "$PACKAGER" install -y curl rustup man-pages man-db man ;; - zypper) - "$ESCALATION_TOOL" "$PACKAGER" install -n curl gcc make - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - . $HOME/.cargo/env - ;; apk) "$ESCALATION_TOOL" "$PACKAGER" add build-base "$ESCALATION_TOOL" "$PACKAGER" add rustup