Re: yum remove <old kernel pkgs> -- wants to remove a ton of stuff

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxxxxxxxxxxxxxx -----------------------------
  "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) -----------------------------

Attachment: pgpgBmDHF1Imk.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux