-
Notifications
You must be signed in to change notification settings - Fork 0
InitInstallationScript
holzkohlengrill edited this page Dec 15, 2023
·
2 revisions
Simple script so install packages to a fresh distro install.
-
normalInstall
installs a package without user interaction -
optionalInstall
prompts the user whether the package should be installed
# Usage: optionalInstall <package_name>
optionalInstall () {
printf "\033[1;33m"
read -p "Do you want to install $1 [Y/n]?" answer
printf "\033[1;37m"
if [ "$answer" = "y" ] || [ "$answer" = "Y" ] || [ "$answer" = "" ]; then
echo "\033[1;32mInstalling $1 ...\033[1;37m"
sudo pacman -S $1
fi
}
normalInstall () {
echo "\033[1;32mInstalling $1...\033[1;37m"
sudo pacman -S $1
}
echo "Do Update & Upgrade ..."
sudo pacman -Syu
# For the future use private repository for installing
echo "Install software ..."
normalInstall gimp
normalInstall inkscape
# ... <add additional packages here>
normalInstall perl-rename
# Optional Software:
optionalInstall blender
# ... <add additional packages here>
optionalInstall virtualbox
exit 0
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License *.
Code (snippets) are licensed under a MIT License *.
* Unless stated otherwise