[Yum-devel] fun plugin for testing

Jeremy Katz katzj at redhat.com
Fri Nov 4 03:22:06 UTC 2005


I whipped up a quick plugin this evening to help cut down on the
bazillion installed kernels problem.  The answer is basically to keep
around (by default) the current running kernel and the new one you're
installing.[1]  I want to look at using this by default with the Fedora
yum config because one of our current large problems is that people end
up with 10 kernels installed and can't remove them.  And making them do
it by hand (especially as we move to pup) is silly.

You'll need to ensure that you have a 'plugins=1' line in /etc/yum.conf
and create /etc/yum/pluginconf.d/n-installonly.conf with
  [main]
  enabled=1

Then, grab http://people.redhat.com/~katzj/n-installonly.py (also
attached but the website version will be the "newest" if I fix anything)
and drop it into /usr/lib/yum-plugins.  Update away and you should see
the right thing happen.

It seems to work okay in my, admittedly limited, testing.  Further
feedback appreciated, otherwise, I'll probably drop it in for the
rawhide world at large the beginning of next week.

Jeremy

[1] You can keep around more than just 2 kernels[2] by setting tokeep to
something in the plugin config file
[2] Also, there's a caveat that we leave installed 2 of all variants...
eg, if you have kernel and kernel-smp, then the two most recent of both
will be left behind.  This should be fine for FC5 since we're going to
only install one kernel by default there.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: n-installonly.py
Type: text/x-python
Size: 2636 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20051103/f051be57/attachment.py 


More information about the Yum-devel mailing list