Adding a kernel removal script to linux-base or elsewhere

Jarno Suni j_suni at yahoo.co.uk
Sat Oct 15 12:25:56 UTC 2016


> On Saturday, October 15, 2016 3:06 PM, Jarno Suni <j_suni at yahoo.co.uk> wrote:

> > On Friday, October 14, 2016 2:11 AM, J Fernyhough <j.fernyhough at gmail.com> 
> wrote:
> 
> 
>> Doesn't `apt-get autoremove` remove old kernel versions already? (IIRC 
> it keeps three? old versions)
> 
> 
> It depends on script 
> /etc/kernel/postinst.d/apt-auto-removal and when it is run last time, which 
> automatically 
> installed kernels it does NOT remove. `apt-get autoremove` removes other 
> packages that are automatically installed and that no package depends on, too, 
> which may or may not be wanted. It may be unable to remove old kernels in some 
> cases when /boot or system is full.

System may be so clogged that even dpkg is unable to remove packages, but my script can.



More information about the ubuntu-doc mailing list