Bug 175546 - rpm -e kernel-devel eats my memory
Summary: rpm -e kernel-devel eats my memory
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Paul Nasrat
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-12-12 16:49 UTC by Matthias Clasen
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-01-06 12:41:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Matthias Clasen 2005-12-12 16:49:25 UTC
Since a few days, I'm not able to update my home machine anymore.

yum update tries to remove some of the kernel-devel packages, and
rpm just keeps eating memory on that task. Manually doing 
rpm -e kernel-devel-... for a single version of kernel-devel yields
the same result. This is on a machine with 256MB. After adding 2GB of swap, rpm
still gets OOM killed after a while.

Comment 1 Jeff Johnson 2005-12-12 19:55:14 UTC
How many kernels do you have installed?

Comment 2 Matthias Clasen 2005-12-12 20:05:01 UTC
I successfully removed all kernel versions except for the last 2, but there are
quite a few kernel-devel versions installed. I think around 15 - 20. The
earliest one is 1600_FC5 IIRC.

Comment 3 Jeff Johnson 2006-01-06 12:41:51 UTC
On a 256Mb machine with 15-20 kernel-devel packages installed you
will probably have to remove the files manually
    for i in list_of_kernel_devel_pkgs; do
      rm -f `rpm -ql $i`
    done
and then write a program to delete the headers in /var/lib/rpm/Packages by
their instance key. That program used to exist at http://people.redhat.com/jbj, no
idea where that has gone.


Note You need to log in before you can comment on or make changes to this bug.