From 7021eadcd3f3a5214870505be853346905805f31 Mon Sep 17 00:00:00 2001 From: simono41 Date: Fri, 4 May 2018 22:53:19 +0200 Subject: [PATCH] verwaiste-packete-entfernen --- arch-graphical-install-auto | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch-graphical-install-auto b/arch-graphical-install-auto index 0ad28a6..87e6355 100755 --- a/arch-graphical-install-auto +++ b/arch-graphical-install-auto @@ -712,6 +712,12 @@ if [ "$version" != "lite" ]; then fi +if pacman -Qdtq; then + echo "Verwaiste Packete werden entfernt :)" + pacman -Rsn $(pacman -Qdtq) --noconfirm +else + echo "Es müssen keine verwaisten Packete entfernt werden :)" +fi pacman -Syu --needed --noconfirm if [ "${version}" == "libre" ]; then