mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 13:22:28 +00:00
Merge dc93e74b65
into 79eb752552
This commit is contained in:
commit
9c61e09f87
21
README.md
21
README.md
|
@ -29,6 +29,7 @@ curl -fsSL https://christitus.com/linuxdev | sh
|
||||||
Linutil is also available as a package in various repositories:
|
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)
|
[![Packaging status](https://repology.org/badge/vertical-allrepos/linutil.svg)](https://repology.org/project/linutil/versions)
|
||||||
|
[![build result](https://build.opensuse.org/projects/utilities/packages/linutil/badge.svg?type=percent)](https://build.opensuse.org/package/show/utilities/linutil)
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Arch Linux</summary>
|
<summary>Arch Linux</summary>
|
||||||
|
@ -58,7 +59,27 @@ paru -S linutil
|
||||||
Replace `paru` with your preferred helper and `linutil` with your preferred package.
|
Replace `paru` with your preferred helper and `linutil` with your preferred package.
|
||||||
|
|
||||||
</details>
|
</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>
|
<details>
|
||||||
<summary>Cargo</summary>
|
<summary>Cargo</summary>
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,29 @@ installLinutil() {
|
||||||
esac
|
esac
|
||||||
printf "%b\n" "${GREEN}Installed successfully.${RC}"
|
printf "%b\n" "${GREEN}Installed successfully.${RC}"
|
||||||
;;
|
;;
|
||||||
|
zypper)
|
||||||
|
printf '%s\n' 'detecting flavor'
|
||||||
|
if zypper lr | grep -Fq Tumbleweed
|
||||||
|
then flavor=Tumbleweed
|
||||||
|
else flavor=Slowroll
|
||||||
|
fi
|
||||||
|
|
||||||
|
printf '%b%s%b\n' "flavor detected is ${GREEN}" "$flavor" "$RC"
|
||||||
|
printf "\n" "setting up repos"
|
||||||
|
case "$flavor" in
|
||||||
|
Tumbleweed)
|
||||||
|
"$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Tumbleweed/home:solomoncyj.repo
|
||||||
|
;;
|
||||||
|
Slowroll)
|
||||||
|
"$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
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\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}"
|
printf "%b" "${YELLOW}Do you want to install the crates.io package? (y/N): ${RC}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user