1
0
Fork 0

force non interactive apt purge

This commit is contained in:
VirtuBox 2019-04-25 11:57:09 +02:00
parent cbd202bc4a
commit 6c7e1775d4
Signed by: virtubox
GPG Key ID: 22EB296C97BAD476
1 changed files with 2 additions and 2 deletions

View File

@ -146,11 +146,11 @@ MAINTENANCE_APT() {
echo -e "${CGREEN}#############################################${CEND}"
echo -e ' APT-GET AUTOREMOVE '
echo -e "${CGREEN}#############################################${CEND}"
$NEED_SUDO apt-get -y --purge autoremove
DEBIAN_FRONTEND=noninteractive $NEED_SUDO apt-get -o Dpkg::Options::="--force-confmiss" -o Dpkg::Options::="--force-confold" -y --purge autoremove
echo -e "${CGREEN}#############################################${CEND}"
echo -e ' APT AUTOCLEAN '
echo -e "${CGREEN}#############################################${CEND}"
$NEED_SUDO apt-get -y autoclean
DEBIAN_FRONTEND=noninteractive $NEED_SUDO apt-get -o Dpkg::Options::="--force-confmiss" -o Dpkg::Options::="--force-confold" -y autoclean
$NEED_SUDO apt-get -y clean
## clean packages in deinstall state
DEINSTALLED=$($NEED_SUDO dpkg --get-selections | grep deinstall | cut -f1)