]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Adding packages from EPEL.
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 24 Aug 2023 10:16:58 +0000 (12:16 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 24 Aug 2023 10:16:58 +0000 (12:16 +0200)
kickstart/profile.rhel-9.2.develop.ks
snippets/tpl.255.pkgs-el9.sh [new file with mode: 0644]

index b4a64e291a8c026a09fb076b1e75e78b48dbabd7..944eb5ecb2147115c9e55b8767e21a3b2a060575 100644 (file)
@@ -89,6 +89,7 @@ mlocate
 net-tools
 psmisc
 rsync
+s-nail
 strace
 sysstat
 tcpdump
@@ -323,6 +324,11 @@ echo
 echo "Using snippet $vimrc_snippet"
 $SNIPPET($vimrc_snippet)
 
+#set $pkgs_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.255.pkgs-el9.sh"
+echo
+echo "Using snippet $pkgs_snippet"
+$SNIPPET($pkgs_snippet)
+
 #set $this_snippet= "per_status/" + $SYSTEM_STATUS + "/tpl.320.root-ssh-login.sh"
 echo
 echo "Using snippet $this_snippet"
diff --git a/snippets/tpl.255.pkgs-el9.sh b/snippets/tpl.255.pkgs-el9.sh
new file mode 100644 (file)
index 0000000..711b4d7
--- /dev/null
@@ -0,0 +1,38 @@
+## !/bin/bash
+#raw
+
+#-----------------------------------------------------------
+install_pkgs_el9() {
+
+    echo -e "\e[0Ksection_start:$( date +%s ):ks_install_pkgs_el9[collapsed=true]\r\e[0KInstalling additional packages from EPEL ..."
+    echo
+    echo "${HASH_LINE}"
+    echo "Calling install_pkgs_el9() ..."
+    echo
+
+    local -a pkgs_add=('p7zip' 'screen')
+    local -a pkgs_remove=()
+
+    if [[ "${#pkgs_add[*]}" -gt 0 ]] ; then
+        echo
+        log "Installing additional packages from EPEL ..."
+        echo
+        echo "Installing packages: ${pkgs_add[*]}"
+        dnf install -y "${pkgs_add[@]}"
+    fi
+
+    if [[ "${#pkgs_remove[*]}" -gt 0 ]] ; then
+        echo
+        log "Removing pointless packages ..."
+        echo
+        echo "Removing packages: ${pkgs_remove[*]}"
+        dnf remove -y "${pkgs_remove[@]}"
+    fi
+
+    echo -e "\e[0Ksection_end:$( date +%s ):ks_install_pkgs_el9\r\e[0K"
+}
+
+install_pkgs_el9
+
+#end raw
+## vim: ts=4 et list