Skip to content

Commit f914e18

Browse files
authored
Update OpenSUSE_Installation.sh
1 parent a6eab4d commit f914e18

File tree

1 file changed

+25
-19
lines changed

1 file changed

+25
-19
lines changed

OpenSUSE_Installation.sh

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
# * Make the script install VLC from the VideoLAN repos
1313
# * Add tags to echo statements to show the status of
1414
# an action.
15-
# # Disable font installation logic.
15+
# * Disable font installation logic.
16+
# * Disable repository Packman after installation of
17+
# codecs. This will prevent vendor change to Packman.
18+
# * Reorder logic to check updates after importing keys
19+
# and adding relevant repositories.
1620
#
1721
# 1.0 (19-July-2024):
1822
# * Improve comments
@@ -25,18 +29,8 @@
2529

2630
echo "--- OpenSUSE Installation Script ---"
2731

28-
# --- CHECK FOR UPDATES --- #
29-
30-
# Check for OpenSUSE Tumbleweed updates
31-
echo "[ INFORMATION ] Checking for Updates..."
32-
sudo zypper dup -y
33-
3432
# ---- ADD REPOSITORIES ---- #
3533

36-
echo "[ INFORMATION ] Adding Repository: Packman"
37-
# Add OpenSUSE Packman repository
38-
sudo zypper addrepo --refresh 'https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/' packman
39-
4034
echo "[ INFORMATION ] Adding Repository: Microsoft"
4135
# Add Microsoft Repositories
4236
sudo rpm --import 'https://packages.microsoft.com/keys/microsoft.asc'
@@ -51,22 +45,34 @@ sudo sh -c 'echo -e "[shiftkey-packages]\nname=GitHub Desktop\nbaseurl=https://r
5145
echo "[ INFORMATION ] Adding Repository: VLC"
5246
sudo zypper addrepo 'https://download.videolan.org/pub/vlc/SuSE/Tumbleweed/' VLC
5347

54-
# ---- INSTALL SOFTWARE ---- #
55-
56-
echo "[ INFORMATION ] Refreshing ALL Repositories..."
57-
# Refresh all repositories
58-
sudo zypper refresh
59-
60-
# Begin package installation
61-
6248
# --- Install Codecs from Packman --- #
6349

50+
echo "[ INFORMATION ] Adding Repository: Packman"
51+
# Add OpenSUSE Packman repository
52+
sudo zypper addrepo --refresh 'https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/' packman
53+
6454
echo "[ ATTENTION ] Installing: Codecs"
6555
# Install the codecs required for multimedia playback
6656
#
6757
# NOTE: Not using opi here since it will switch ALL packages that exist in the Packman repository to use Packman.
6858
# We manually specify to install codecs from Packman repository so all other programs are not switched to Packman.
6959
sudo zypper install -y --allow-vendor-change --from packman ffmpeg gstreamer-plugins-{good,bad,ugly,libav} libavcodec vlc-codecs
60+
# Disable Packman repository
61+
sudo zypper mr -d packman
62+
63+
# ---- INSTALL SOFTWARE ---- #
64+
65+
echo "[ INFORMATION ] Refreshing ALL Repositories..."
66+
# Refresh all repositories
67+
sudo zypper refresh
68+
69+
# --- CHECK FOR UPDATES --- #
70+
71+
# Check for OpenSUSE Tumbleweed updates
72+
echo "[ INFORMATION ] Checking for Updates..."
73+
sudo zypper dup -y
74+
75+
# Begin package installation
7076

7177
echo "[ ATTENTION ] Installing: OpenRGB & Utilities"
7278
# --- Install OpenRGB Tools --- #

0 commit comments

Comments
 (0)