From 790e673096e8f2dbb02c1d6e8a280c4f4cee86e2 Mon Sep 17 00:00:00 2001 From: amazingfate Date: Mon, 17 Apr 2023 17:32:33 +0800 Subject: [PATCH] remove apt cache in the rootfs --- lib/functions/rootfs/apt-install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/functions/rootfs/apt-install.sh b/lib/functions/rootfs/apt-install.sh index 59ed5e4fe1..dc684d0c61 100644 --- a/lib/functions/rootfs/apt-install.sh +++ b/lib/functions/rootfs/apt-install.sh @@ -11,6 +11,9 @@ function apt_purge_unneeded_packages() { # remove packages that are no longer needed. rootfs cache + uninstall might have leftovers. display_alert "No longer needed packages" "purge" "info" chroot_sdcard_apt_get autoremove + # clean apt cache + display_alert "No longer needed apt cache" "purge" "info" + chroot_sdcard_apt_get clean } # this is called: