From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Description of problem: "package-cleanup --oldkernels" only examines "kernel" packages, and ignores "kernel-smp" packages, making it useless for SMP machines. I think the script should be modified so that the comparison in line 141 of the script uses the value of DEFAULTKERNEL from /etc/sysconfig/kernel, instead of just "kernel". Version-Release number of selected component (if applicable): yum-utils-0.2-2.fc4 How reproducible: Always Steps to Reproduce: 1. run "package-cleanup --oldkernels" as root on a machine using the kernel-smp package. Actual Results: [root@server2 ~]# package-cleanup --oldkernels Setting up yum There are only 0 kernels installed of maximum 2 kernels, nothing to be done Expected Results: Remove all but the two most recent kernel-smp packages. Additional info:
known and assigned - will come back to this later.
Any liklihood of progress on this bug this year?
Hello!? Any progress likely this year?
FC3 and FC4 have now been EOL'd. Please check the ticket against a current Fedora release, and either adjust the release number, or close it if appropriate. Thanks. Your friendly BZ janitor :-)
I'm having the problem with FC5 as well -but not being the owner of the case I can't change the version.
Reopening per comment #5
Any progress likely this DECADE? I mean, seriously, this bug was reported almost two years ago and it can't be that hard to fix. I know it not the most critical bug, but two years is absurd. Why not just state that "due to the lack of severity, this bug will not be fixed." It has been in every version of Fedora I've used (3, 4, and 5). -Chris
Seth, is there an upstream bugzilla this should be moved to?
There's not. Though, to be fair, the reason why it got forgotten about is b/c after FC6 we don't have smp kernels anymore and it wasn't really relevant to fix.
Presumably the same thing applies to PAE now, though....
Actually, I'm getting this on FC6: ------------------------------------ # package-cleanup --oldkernels --count=1 Setting up yum I will remove the following 1 kernel related packages: kernel-2.6.20-1.2944.fc6 Is this ok [y/N]: y /usr/bin/package-cleanup:312: DeprecationWarning: returnHeaderByTuple() will go away in a future version of Yum. hdr = my.rpmdb.returnHeaderByTuple(kernel)[0] Traceback (most recent call last): File "/usr/bin/package-cleanup", line 402, in ? main() File "/usr/bin/package-cleanup", line 371, in main removeKernels(my, opts.kernelcount, opts.confirmed, opts.keepdevel) File "/usr/bin/package-cleanup", line 317, in removeKernels my.populateTs() File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 171, in populateTs self.ts.addErase(txmbr.po.idx) AttributeError: 'YumInstalledPackage' object has no attribute 'idx' ------------------------------------ This is just with the regular kernel.
okay - this is fixed in yum-utils git upstream. Thanks for the report.