commit a89802277fa483df4f0168ba215967def7444972 Author: Thomas de Roo Date: Tue Jul 4 11:01:42 2023 +0200 eerste opzet diff --git a/apt-update.sh b/apt-update.sh new file mode 100755 index 0000000..25945dd --- /dev/null +++ b/apt-update.sh @@ -0,0 +1,10 @@ +#!/bin/bash +apt-get update +listUpgrades=`apt list --upgradable |grep upgradable |cut -d/ -f1` +execUpgrades="DEBIAN_FRONTEND=noninteractive apt-get --yes --assume-yes -o DPkg::options::=\"--force-confdef\" -o DPkg::options::=\"--force-confold\" --only-upgrade install "$listUpgrades +eval $execUpgrades + +# https://www.bggofurther.com/2018/07/automate-apt-update-and-keep-current-config-files/ + +DEBIAN_FRONTEND=noninteractive apt-get --yes autoremove +DEBIAN_FRONTEND=noninteractive apt-get clean