Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Tim Watts Newsgroups: comp.os.linux.misc Subject: Re: Limiting number of kernels on debian/ubuntu Followup-To: comp.os.linux.misc Date: Thu, 14 Apr 2011 18:24:13 +0100 Organization: A noiseless patient Spider Lines: 29 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Info: mx02.eternal-september.org; posting-host="6oIlEBqCjOm0MjsSUEk5CA"; logging-data="17515"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/HgXzZU9zG0yQ+rdEb+aUpZrSDOjw7bc=" User-Agent: KNode/4.4.6 Cancel-Lock: sha1:1LPJWt1Cpxtf78zfhwmI+5I1rto= Xref: x330-a1.tempe.blueboxinc.net comp.os.linux.misc:730 The Natural Philosopher wrote: > Tim Watts wrote: >> Interesting one - looked at my old ubuntu 8.04 server. >> >> Loads of installed kernel debs (not unexpected for its age). >> >> But - is there any way to get apt-get to limit the max number, say to the >> last 3 latest (ie to "autoremove" old ones)? I've looked into this before >> via google, but not found an answer... >> >> Cheers, >> >> Tim > On debian I just remove em manually That's what I just did :) But, let's say you have 50+ machines... OK - I could code a maint script in perl, but I *suspected* there might be a clever way to tell apt to junk them ("clever" like pinning and the other stunts advanced apt-fu can pull). Cheers Tim -- Tim Watts