1
0
Fork 0

unix-setup.sh: apt-get: do not install suggested packages

This commit is contained in:
Pratham Patel 2024-03-26 16:36:38 +05:30
parent a0d6ef3216
commit 0c5fee5c17
Signed by: thefossguy
SSH Key Fingerprint: SHA256:/B3wAg7jnMEBQ2JwkebbS/eXVZANDmqRfnd9QkIhxMI
1 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,7 @@ function install_pkgs_darwin() {
fi
}
function install_pkgs_debian() {
EXTRA_APT_CONF='/etc/apt/conf.d/90noinstallsuggests'
export DEBIAN_FRONTEND=noninteractive
export NEEDRESTART_SUSPEND=true
PKGS_TO_INSTALL=(
@ -88,7 +89,9 @@ function install_pkgs_debian() {
wget
)
sudo apt-get update
echo 'APT::Install-Suggests "0"' | sudo tee "${EXTRA_APT_CONF}"
sudo apt-get install --assume-yes --no-install-recommends "${PKGS_TO_INSTALL[@]}"
sudo rm "${EXTRA_APT_CONF}"
sudo apt-get upgrade --assume-yes
}
function install_pkgs_fedora() {