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