Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OpenSUSE to list of linutil added to package managers #820

Merged
merged 20 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ curl -fsSL https://christitus.com/linuxdev | sh
Linutil is also available as a package in various repositories:

[![Packaging status](https://repology.org/badge/vertical-allrepos/linutil.svg)](https://repology.org/project/linutil/versions)
[![build result](https://build.opensuse.org/projects/home:solomoncyj/packages/linutil/badge.svg?type=percent)](https://build.opensuse.org/package/show/home:solomoncyj/linutil)
solomoncyj marked this conversation as resolved.
Show resolved Hide resolved

<details>
<summary>Arch Linux</summary>
Expand Down Expand Up @@ -58,7 +59,27 @@ paru -S linutil
Replace `paru` with your preferred helper and `linutil` with your preferred package.

</details>

<details>
<summary>OpenSUSE</summary>

While waiting for the Package to be shipped to the Factory, you can install the application for openSuse by running:

### TumbleWeed

```bash
zypper addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Tumbleweed/home:solomoncyj.repo
zypper refresh
zypper install linutil
```

### Slowroll

```bash
zypper addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo
zypper refresh
zypper install linutil
```
</details>
<details>
<summary>Cargo</summary>

Expand Down
20 changes: 20 additions & 0 deletions core/tabs/applications-setup/linutil-installer.sh
solomoncyj marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,26 @@ installLinutil() {
esac
printf "%b\n" "${GREEN}Installed successfully.${RC}"
;;
zypper)
solomoncyj marked this conversation as resolved.
Show resolved Hide resolved
printf '%s\n' 'detecting flavor'
[ zypper lr | grep -i "Tumbleweed" ] && flavor="Tumbleweed" || flavor="Slowroll"
printf '%b%s%b\n' "flavor detected is ${GREEN}" "$flavor" "$RC"
printf "\n" "setting up repos..."
if [ $flavor == "Tumbleweed" ]
solomoncyj marked this conversation as resolved.
Show resolved Hide resolved
then
"$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Tumbleweed/home:solomoncyj.repo
fi

if [ $flavor == "Slowroll" ]
then
"$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo
fi

printf '%s\n' 'refreshing and installing'
"$ESCALATION_TOOL" "$PACKAGER" refresh
"$ESCALATION_TOOL" "$PACKAGER" install linutil
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}"
Expand Down