[CentOS] yum remove <old kernel pkgs> -- wants to remove a ton of stuff

fred smith fredex at fcshome.stoneham.ma.us
Wed Jul 16 23:54:47 UTC 2008


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.

-- 
---- Fred Smith -- fredex at fcshome.stoneham.ma.us -----------------------------
  "For him who is able to keep you from falling and to present you before his 
 glorious presence without fault and with great joy--to the only God our Savior
 be glory, majesty, power and authority, through Jesus Christ our Lord, before
                     all ages, now and forevermore! Amen."
----------------------------- Jude 1:24,25 (niv) -----------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20080716/e7a47843/attachment.sig>


More information about the CentOS mailing list