Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #730

Re: Limiting number of kernels on debian/ubuntu

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 <tw@dionic.net>
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 <t6nj78-bs8.ln1@squidward.dionic.net> (permalink)
References <mukj78-n5v.ln1@squidward.dionic.net> <io79sq$dgk$1@news.albasani.net>
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

Followups directed to: comp.os.linux.misc

Show key headers only | View raw


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

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Find similar


Thread

Limiting number of kernels on debian/ubuntu Tim Watts <tw@dionic.net> - 2011-04-14 17:45 +0100
  Re: Limiting number of kernels on debian/ubuntu The Natural Philosopher <tnp@invalid.invalid> - 2011-04-14 18:11 +0100
    Re: Limiting number of kernels on debian/ubuntu Tim Watts <tw@dionic.net> - 2011-04-14 18:24 +0100

csiph-web