remove apt cache in the rootfs

This commit is contained in:
amazingfate
2023-04-17 17:32:33 +08:00
committed by Igor Pečovnik
parent fd6a6dec66
commit 790e673096

View File

@@ -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: