Stiller gemaakt
This commit is contained in:
@@ -1,10 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
apt-get update
|
apt-get -qq update
|
||||||
listUpgrades=`apt list --upgradable |grep upgradable |cut -d/ -f1`
|
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
|
|
||||||
|
echo $listUpgrades
|
||||||
|
echo "=============================="
|
||||||
|
|
||||||
|
execUpgrades="DEBIAN_FRONTEND=noninteractive apt-get --yes --assume-yes -o DPkg::options::=\"--force-confdef\" -o DPkg::options::=\"--force-confold\" --only-upgrade -qq install "$listUpgrades
|
||||||
eval $execUpgrades
|
eval $execUpgrades
|
||||||
|
|
||||||
# https://www.bggofurther.com/2018/07/automate-apt-update-and-keep-current-config-files/
|
# 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 --yes -qq autoremove
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get clean
|
DEBIAN_FRONTEND=noninteractive apt-get -qq clean
|
||||||
Reference in New Issue
Block a user