Distro-provided mechanism to clean up old kernels

Andy Whitcroft apw at canonical.com
Fri Mar 2 14:44:37 UTC 2012


On Mon, Feb 20, 2012 at 03:27:33PM +0100, Martin Pitt wrote:
> Tim Edwards [2012-02-17 11:49 +0100]:
> > On Fri, Feb 17, 2012, at 07:23 AM, Martin Pitt wrote:
> > > linux-headers-* is already covered by apt-get autoremove, which is
> > > good. Perhaps we can mark older kernels as auto-removable as well, so
> > > that without any other tools you at least have one command to clean
> > > them up all?
> > 
> > Are you sure about this? I did a test and I don't think that autoremove
> > removes the linux-headers-*:
> 
> I'm 100% sure that this worked in the past, but apparently that
> changed at some point. Indeed autoremove does not seem to do this any
> more now.
> 
> Martin

I think it only every removed the common architecture headers package
automatically, so when you remove the -16-generic package, the -16
package will autoremove.

-apw



More information about the ubuntu-devel mailing list