From afdb6b9201f6ce46495b783ec14f33debe7569c9 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Tue, 4 Apr 2023 15:29:00 +0100 Subject: [PATCH] Add repos --- scripts/installs/debian-apt.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/scripts/installs/debian-apt.sh b/scripts/installs/debian-apt.sh index a6ef4e2..c8a53ad 100755 --- a/scripts/installs/debian-apt.sh +++ b/scripts/installs/debian-apt.sh @@ -73,6 +73,19 @@ debian_apps=( 'neofetch' # Show off distro and system info ) +debian_repos=( + 'main' + 'universe' + 'restricted' + 'multiverse' +) + +# Following packages not found by apt, need to fix: +# aria2, bat, broot, diff-so-fancy, duf, hyperfine, +# just, procs, ripgrep, sd, tealdeer, tokei, trash-cli, +# zoxide, clamav, cryptsetup, gnupg, lynis, btop, gping. + + # Colors PURPLE='\033[0;35m' YELLOW='\033[0;93m' @@ -110,6 +123,17 @@ if ! hash apt 2> /dev/null; then exit 1 fi +# Enable upstream package repositories +echo -e "${CYAN_B}Would you like to enable listed repos? (y/N)${RESET}\n" +read -t $PROMPT_TIMEOUT -n 1 -r +echo +if [[ $REPLY =~ ^[Yy]$ ]]; then + for repo in ${debian_repos[@]}; do + echo -e "${PURPLE}Enabling ${repo} repo...${RESET}" + sudo add-apt-repository $repo + done +fi + # Prompt user to update package database echo -e "${CYAN_B}Would you like to update package database? (y/N)${RESET}\n" read -t $PROMPT_TIMEOUT -n 1 -r