Skip to content

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

Python 3

(un)fold
Snippets
General
Libs

Linux/bash

(un)fold
Guides
Scripts

Git

(un)fold

C/C++

(un)fold

Video

(un)fold

Databases

(un)fold

Misc

(un)fold

Windows

(un)fold

Mac

(un)fold

SW recommendations

(un)fold

(Angular) Dart

(un)fold

Clone this wiki locally