On Wed, Jul 16, 2008 at 11:09:36AM -0500, Johnny Hughes wrote:
fred smith wrote:
I've got a Centos 4 box at work, where I noticed a pile of old kernels lying around and no longer needed.
I did "rpm -qa | grep -y kernel > list" then edited the list to remove from it the newer kernels, then "yum remove `cat list`". Yum has come up with a list of 71 packages it wants to remove, even though there were only 33 kernel-related RPMs in the list. this doesn't seem right to me, as it is trying to remove a bunch of KDE files, net-snmp stuff, freeradius, etc. I show the entire list below.
This certainly does NOT seem right to me. Anyone care to enlighten me?
Given that it wants to do this, I'm thinking I'd be better off to just do "rpm -e `cat list`" instead.
Fred
Package Arch Version Repository Size
Removing:
<snippage>
kernel-utils i386 1:2.4-13.1.105 installed 1.6 M
<snippage>
Transaction Summary
Install 0 Package(s) Update 0 Package(s) Remove 71 Package(s) Total download size: 0 Is this ok [y/N]:
You are trying to remove kernel-utils ...you don't want to do that. That might cut back the deps a bit. Also, i never remove packages with yum, but with:
rpm -e `cat list`
But, that is just my advise.
Thanks to Johnny and all the others who pointed out the stupid thing I was trying to do. I'll follow the advice to clean up 'list' before trying it again.