Kubuntu purge old kernels option?

Nils Kassube kassube at gmx.net
Thu Nov 13 09:00:14 UTC 2025


Tommy Trussell wrote:
> Apparently in Ubuntu there is (has been?) a script for this. Look for
> a script named something like
> 
> /etc/kernel/postinst.d/apt-auto-removal

> I see all sorts of suggestions for ways to MODIFY the script to do
> things like keep a few more kernels, but since I don't have the
> original, I'd hate to make things bad by transcribing an unfortunate
> typo.

Well, I found the script on an old 14.04 partition and I have attached 
it. I don't know if it is compatible with 25.10 though.


Nils
-------------- next part --------------
A non-text attachment was scrubbed...
Name: apt-auto-removal
Type: application/x-shellscript
Size: 2824 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kubuntu-users/attachments/20251113/f9532f71/attachment.bin>


More information about the kubuntu-users mailing list