77#
88# --- CHANGELOG ---
99#
10+ # 1.2 (28-July-2024):
11+ # * Add a new section to import repository keys first
12+ # and then install the necessary packages. Avoids
13+ # the script from erroring out and skip the packages
14+ # that requires installation.
15+ # * Move OpenRGB tools installation to OpenRGB.sh
16+ # (Makes more sense if the user does not want OpenRGB
17+ # to be installed on their system)
18+ # * Add '-y' flag to automate installation of
19+ # GitHubDesktop and git
20+ # * Cleared up the logic to import the GitHub Desktop
21+ # repository and the GPG Key.
22+ #
1023# 1.1 (23-July-2024):
1124# * Add the VLC repository
1225# * Make the script install VLC from the VideoLAN repos
@@ -31,18 +44,28 @@ echo "--- OpenSUSE Installation Script ---"
3144
3245# ---- ADD REPOSITORIES ---- #
3346
47+ echo " [ INFORMATION ] Importing GPG Keys from External Repositories"
48+ # Import GPG keys from Microsoft, GitHub Desktop for Linux, Packman and VLC repositories
49+ # VLC GPG Key
50+ sudo rpm --import ' http://download.videolan.org/SuSE/Tumbleweed/repodata/repomd.xml.key'
51+ # Microsoft GPG Key
52+ sudo rpm --import ' https://packages.microsoft.com/keys/microsoft.asc'
53+ # GitHub Desktop GPG Key
54+ sudo rpm --import ' https://rpm.packages.shiftkey.dev/gpg.key'
55+ # Packman GPG Key
56+ sudo rpm --import ' http://packman.inode.at/suse/openSUSE_Tumbleweed/repodata/repomd.xml.key'
57+
3458echo " [ INFORMATION ] Adding Repository: Microsoft"
3559# Add Microsoft Repositories
36- sudo rpm --import ' https://packages.microsoft.com/keys/microsoft.asc'
37- sudo zypper addrepo --refresh ' https://packages.microsoft.com/yumrepos/edge' microsoft-edge
38- sudo zypper addrepo --refresh ' https://packages.microsoft.com/yumrepos/vscode' vscode
60+ sudo zypper addrepo --refresh ' https://packages.microsoft.com/yumrepos/edge' Microsoft Edge
61+ sudo zypper addrepo --refresh ' https://packages.microsoft.com/yumrepos/vscode' Visual Studio Code
3962
4063echo " [ INFORMATION ] Adding Repository: GitHub"
4164# Add GitHub Desktop for Linux Repository
42- sudo rpm --import https://rpm.packages.shiftkey.dev/gpg.key
43- sudo sh -c ' echo -e "[shiftkey-packages]\nname=GitHub Desktop\nbaseurl=https://rpm.packages.shiftkey.dev/rpm/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://rpm.packages.shiftkey.dev/gpg.key" > /etc/zypp/repos.d/shiftkey-packages.repo'
65+ sudo zypper addrepo --refresh ' https://rpm.packages.shiftkey.dev/rpm/' GitHub Desktop
4466
4567echo " [ INFORMATION ] Adding Repository: VLC"
68+ # Add VLC Repository
4669sudo zypper addrepo ' https://download.videolan.org/pub/vlc/SuSE/Tumbleweed/' VLC
4770
4871# --- Install Codecs from Packman --- #
@@ -58,6 +81,9 @@ echo "[ ATTENTION ] Installing: Codecs"
5881# We manually specify to install codecs from Packman repository so all other programs are not switched to Packman.
5982sudo zypper install -y --allow-vendor-change --from packman ffmpeg gstreamer-plugins-{good,bad,ugly,libav} libavcodec vlc-codecs
6083# Disable Packman repository
84+ #
85+ # NOTE
86+ # You may want to comment this line out if you want updates from Packman.
6187sudo zypper mr -d packman
6288
6389# ---- INSTALL SOFTWARE ---- #
@@ -74,10 +100,6 @@ sudo zypper dup -y
74100
75101# Begin package installation
76102
77- echo " [ ATTENTION ] Installing: OpenRGB & Utilities"
78- # --- Install OpenRGB Tools --- #
79- sudo zypper install -y OpenRGB i2c-tools
80-
81103echo " [ ATTENTION ] Installing: KDE Utilities"
82104# --- Install KDE Utilities --- #
83105sudo zypper install -y kdeconnect-kde krita kdenlive partitionmanager kvantum-manager
@@ -92,7 +114,7 @@ sudo zypper install -y microsoft-edge-stable code
92114
93115echo " [ ATTENTION ] Installing: GitHub Desktop & Git"
94116# --- Install GitHub Desktop and Git --- #
95- sudo zypper install github-desktop git
117+ sudo zypper install -y github-desktop git
96118
97119echo " [ ATTENTION ] Installing: System Utilities"
98120# --- Install System Level Utilities --- #
@@ -151,7 +173,7 @@ sudo cp -r ./MacOcean /usr/share/sounds
151173
152174# ---- CLEANUP ---- #
153175
154- echo " [ INFORMATION ] Installing: \'autoremove\' command"
176+ printf " [ INFORMATION ] Installing: \'autoremove\' command"
155177# Add "autoremove" command to remove any unneeded packages.
156178echo " alias autoremove=\" sudo zypper packages --unneeded | awk -F'|' 'NR==0 || NR==1 || NR==2 || NR==3 || NR==4 {next} {print $3 }' | grep -v Name | sudo xargs zypper remove -y --clean-deps >> ~/Cleanup.log\" " | sudo tee -a /etc/bash.bashrc.local
157179
0 commit comments