Relatives have a laptop with Ubuntu 16.04, which automatically updates its software. After a few months, they are faced with a full root partition and can no longer start XServer (among other things).
Looking into this they had about 10GB of old kernel files laying around. So step
- for me was to purge
linux-image-genericas manual, as without it you loose all the kernel headers which you do not need on that machine.
- I set autoclean from 0 to 14 days so at least downloaded packages get cleaned up again.
What I am missing now is a step 3, where I could periodically tell the system to not only do a autoclean but also a autoremove and get rid of all non-used kernel packages.
Is there such a thing or do I have to hack something together manually?