Skip to content

Commit 9a9c9f9

Browse files
fix(install.sh): Use rpm-ostree package manager if available (#1399)
* shadps4 location * fix bigpemu * fix paths * fix(install.sh): Use rpm-ostree package manager if available * perf(install.sh): Dont install system dependencies in Bazzite These already come baked in * Revert "perf(install.sh): Dont install system dependencies in Bazzite" This reverts commit 5ef6dad. --------- Co-authored-by: Dragoon Dorise <[email protected]>
1 parent a1455a2 commit 9a9c9f9

File tree

3 files changed

+30
-33
lines changed

3 files changed

+30
-33
lines changed

install-early.sh

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/usr/bin/env bash
22

3+
DEBIAN_DEPS=(jq zenity flatpak unzip bash libfuse2 git rsync whiptail python)
4+
ARCH_DEPS=(steam jq zenity flatpak unzip bash fuse2 git rsync whiptail python)
5+
FEDORA_DEPS=(jq zenity flatpak unzip bash fuse git rsync newt python)
6+
SUSE_DEPS=(steam jq zenity flatpak unzip bash libfuse2 git rsync whiptail python)
7+
VOID_DEPS=(steam jq zenity flatpak unzip bash fuse git rsync whiptail python)
8+
39
linuxID=$(lsb_release -si)
410
sandbox=""
511

@@ -52,38 +58,31 @@ else
5258

5359
if command -v apt-get >/dev/null; then
5460
echo "Installing packages with apt..."
55-
DEBIAN_DEPS=(jq zenity flatpak unzip bash libfuse2 git rsync whiptail python)
5661

5762
sudo killall apt apt-get
5863
sudo apt-get -y update
5964
sudo apt-get -y install "${DEBIAN_DEPS[@]}"
6065
elif command -v pacman >/dev/null; then
6166
echo "Installing packages with pacman..."
62-
ARCH_DEPS=(steam jq zenity flatpak unzip bash fuse2 git rsync whiptail python)
6367

6468
sudo pacman --noconfirm -Syu
6569
sudo pacman --noconfirm -S "${ARCH_DEPS[@]}"
70+
elif command -v rpm-ostree >/dev/null; then
71+
echo "Installing packages with rpm-ostree..."
72+
73+
sudo rpm-ostree install "${FEDORA_DEPS[@]}"
6674
elif command -v dnf >/dev/null; then
6775
echo "Installing packages with dnf..."
68-
FEDORA_DEPS=(jq zenity flatpak unzip bash fuse git rsync newt python)
6976

7077
sudo dnf -y upgrade
7178
sudo dnf -y install "${FEDORA_DEPS[@]}"
72-
elif command -v rpm-ostree >/dev/null; then
73-
echo "Installing packages wth rpm-ostree..."
74-
FEDORA_DEPS=(jq zenity flatpak unzip bash fuse git rsync newt python)
75-
76-
sudo rpm-ostree upgrade
77-
sudo rpm-ostree install "${FEDORA_DEPS[@]}"
7879
elif command -v zypper >/dev/null; then
7980
echo "Installing packages with zypper..."
80-
SUSE_DEPS=(steam jq zenity flatpak unzip bash libfuse2 git rsync whiptail python)
8181

8282
sudo zypper --non-interactive up
8383
sudo zypper --non-interactive install "${SUSE_DEPS[@]}"
8484
elif command -v xbps-install >/dev/null; then
8585
echo "Installing packages with xbps..."
86-
VOID_DEPS=(steam jq zenity flatpak unzip bash fuse git rsync whiptail python)
8786

8887
sudo xbps-install -Syu
8988
sudo xbps-install -Sy "${VOID_DEPS[@]}"

install-unstable.sh

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/usr/bin/env bash
22

3+
DEBIAN_DEPS=(jq zenity flatpak unzip bash libfuse2 git rsync whiptail python)
4+
ARCH_DEPS=(steam jq zenity flatpak unzip bash fuse2 git rsync whiptail python)
5+
FEDORA_DEPS=(jq zenity flatpak unzip bash fuse git rsync newt python)
6+
SUSE_DEPS=(steam jq zenity flatpak unzip bash libfuse2 git rsync whiptail python)
7+
VOID_DEPS=(steam jq zenity flatpak unzip bash fuse git rsync whiptail python)
8+
39
linuxID=$(lsb_release -si)
410
sandbox=""
511

@@ -52,38 +58,31 @@ else
5258

5359
if command -v apt-get >/dev/null; then
5460
echo "Installing packages with apt..."
55-
DEBIAN_DEPS=(jq zenity flatpak unzip bash libfuse2 git rsync whiptail python)
5661

5762
sudo killall apt apt-get
5863
sudo apt-get -y update
5964
sudo apt-get -y install "${DEBIAN_DEPS[@]}"
6065
elif command -v pacman >/dev/null; then
6166
echo "Installing packages with pacman..."
62-
ARCH_DEPS=(steam jq zenity flatpak unzip bash fuse2 git rsync whiptail python)
6367

6468
sudo pacman --noconfirm -Syu
6569
sudo pacman --noconfirm -S "${ARCH_DEPS[@]}"
70+
elif command -v rpm-ostree >/dev/null; then
71+
echo "Installing packages with rpm-ostree..."
72+
73+
sudo rpm-ostree install "${FEDORA_DEPS[@]}"
6674
elif command -v dnf >/dev/null; then
6775
echo "Installing packages with dnf..."
68-
FEDORA_DEPS=(jq zenity flatpak unzip bash fuse git rsync newt python)
6976

7077
sudo dnf -y upgrade
7178
sudo dnf -y install "${FEDORA_DEPS[@]}"
72-
elif command -v rpm-ostree >/dev/null; then
73-
echo "Installing packages wth rpm-ostree..."
74-
FEDORA_DEPS=(jq zenity flatpak unzip bash fuse git rsync newt python)
75-
76-
sudo rpm-ostree upgrade
77-
sudo rpm-ostree install "${FEDORA_DEPS[@]}"
7879
elif command -v zypper >/dev/null; then
7980
echo "Installing packages with zypper..."
80-
SUSE_DEPS=(steam jq zenity flatpak unzip bash libfuse2 git rsync whiptail python)
8181

8282
sudo zypper --non-interactive up
8383
sudo zypper --non-interactive install "${SUSE_DEPS[@]}"
8484
elif command -v xbps-install >/dev/null; then
8585
echo "Installing packages with xbps..."
86-
VOID_DEPS=(steam jq zenity flatpak unzip bash fuse git rsync whiptail python)
8786

8887
sudo xbps-install -Syu
8988
sudo xbps-install -Sy "${VOID_DEPS[@]}"

install.sh

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/usr/bin/env bash
22

3+
DEBIAN_DEPS=(jq zenity flatpak unzip bash libfuse2 git rsync whiptail python)
4+
ARCH_DEPS=(steam jq zenity flatpak unzip bash fuse2 git rsync libnewt python)
5+
FEDORA_DEPS=(jq zenity flatpak unzip bash fuse git rsync newt python)
6+
SUSE_DEPS=(steam jq zenity flatpak unzip bash libfuse2 git rsync whiptail python)
7+
VOID_DEPS=(steam jq zenity flatpak unzip bash fuse git rsync whiptail python)
8+
39
linuxID=$(lsb_release -si)
410
sandbox=""
511

@@ -53,38 +59,31 @@ else
5359

5460
if command -v apt-get >/dev/null; then
5561
echo "Installing packages with apt..."
56-
DEBIAN_DEPS=(jq zenity flatpak unzip bash libfuse2 git rsync whiptail python)
5762

5863
sudo killall apt apt-get
5964
sudo apt-get -y update
6065
sudo apt-get -y install "${DEBIAN_DEPS[@]}"
6166
elif command -v pacman >/dev/null; then
6267
echo "Installing packages with pacman..."
63-
ARCH_DEPS=(steam jq zenity flatpak unzip bash fuse2 git rsync libnewt python)
6468

6569
sudo pacman --noconfirm -Syu
6670
sudo pacman --noconfirm -S "${ARCH_DEPS[@]}"
71+
elif command -v rpm-ostree >/dev/null; then
72+
echo "Installing packages with rpm-ostree..."
73+
74+
sudo rpm-ostree install "${FEDORA_DEPS[@]}"
6775
elif command -v dnf >/dev/null; then
6876
echo "Installing packages with dnf..."
69-
FEDORA_DEPS=(jq zenity flatpak unzip bash fuse git rsync newt python)
7077

7178
sudo dnf -y upgrade
7279
sudo dnf -y install "${FEDORA_DEPS[@]}"
73-
elif command -v rpm-ostree >/dev/null; then
74-
echo "Installing packages wth rpm-ostree..."
75-
FEDORA_DEPS=(jq zenity flatpak unzip bash fuse git rsync newt python)
76-
77-
sudo rpm-ostree upgrade
78-
sudo rpm-ostree install "${FEDORA_DEPS[@]}"
7980
elif command -v zypper >/dev/null; then
8081
echo "Installing packages with zypper..."
81-
SUSE_DEPS=(steam jq zenity flatpak unzip bash libfuse2 git rsync whiptail python)
8282

8383
sudo zypper --non-interactive up
8484
sudo zypper --non-interactive install "${SUSE_DEPS[@]}"
8585
elif command -v xbps-install >/dev/null; then
8686
echo "Installing packages with xbps..."
87-
VOID_DEPS=(steam jq zenity flatpak unzip bash fuse git rsync whiptail python)
8887

8988
sudo xbps-install -Syu
9089
sudo xbps-install -Sy "${VOID_DEPS[@]}"

0 commit comments

Comments
 (0)