I am on Ubuntu 14.04 and I have a lot of old kernels that I want to remove.
This question can help to find and remove them, but there is a problem:
Each time
dpkg
removes a single kernel, it runs/etc/kernel/postinst.d/zz-update-grub
andupdate-initramfs
over all the kernels currently remaining.
As a result, the uninstall takes forever!
I want to remove all the packages in one go, and then run update-grub
once at the end. How can I disable the unnecessary steps?
(I use unattended-upgrades
. Perhaps that's how I got into this situation.)