diff --git a/common/functions.sh b/common/functions.sh index 87a094d..621d6c6 100644 --- a/common/functions.sh +++ b/common/functions.sh @@ -110,17 +110,17 @@ pkgmgr_clean(){ if [ "$PKG_MANAGER" == "apt-get" ] ; then "$PKG_MANAGER" clean "$PKG_MANAGER" autoclean - "$PKG_MANAGER" autoremove + "$PKG_MANAGER" autoremove -y elif [ "$PKG_MANAGER" == "dnf" ] ; then "$PKG_MANAGER" clean dbcache "$PKG_MANAGER" clean all - "$PKG_MANAGER" autoremove + "$PKG_MANAGER" autoremove -y elif [ "$PKG_MANAGER" == "yum" ] ; then "$PKG_MANAGER" clean packages "$PKG_MANAGER" clean headers "$PKG_MANAGER" clean metadata "$PKG_MANAGER" clean all - "$PKG_MANAGER" autoremove + "$PKG_MANAGER" autoremove -y fi }