RPM needs to go on a diet.

Sean Middleditch elanthis at awesomeplay.com
Thu Feb 17 20:06:32 UTC 2005

On Thu, 2005-02-17 at 14:45 -0500, Jeff Spaleta wrote:
>On Thu, 17 Feb 2005 14:33:24 -0500, Jeff Johnson <n3npq at nc.rr.com> wrote:
>> Or have every possible bleeping kernel already pre-installed and never
>> remove anything.
>> Unfortunately, that exercises known deficiencies with both rpm and
>> hardlinks, and is
>> slower than optimal, so take valium and be patient.
>The question becomes... can  someone expose reasonable sane default
>behavior of some tool to do old kernel pruning... to avoid normal
>fedora users from encountering these deficiencies when you have 17 or
>so update kernels installed.

This is a script I've been using on two Rawhide boxes.  (Well, actually,
it's the version I use on this box; the version on the other box is
different and a bit better, but it's not online right now.)  It displays
a list of installed kernels, except for the newest kernel and the
currently running kernel, and lets you pick the ones you want to remove.

It's graphical (uses Zenity), but could easily be changed to be
console-only if someone really wanted to.  The other version I have knew
how to remove some related packages like kernel-devel, but it also
wasn't quite as bright about some other things; it's been a while, I
forget what all the differences between the two scripts were.

This is definitely not the ideal tool for the problem, but it's
something other Rawhide users might find useful, so here it is.

Sean Middleditch <elanthis at awesomeplay.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove-kernels.sh
Type: application/x-shellscript
Size: 918 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20050217/0c672abf/attachment.bin>

More information about the fedora-devel-list mailing list