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: