FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 07-16-2008, 04:09 PM
Johnny Hughes
 
Default yum remove -- wants to remove a ton of stuff

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:
kernel i686 2.6.9-55.0.12.EL installed 28 M
kernel i686 2.6.9-55.0.2.EL installed 28 M
kernel i686 2.6.9-42.0.2.EL installed 27 M
kernel i686 2.6.9-42.0.8.EL installed 27 M
kernel i686 2.6.9-42.0.3.EL installed 27 M
kernel i686 2.6.9-55.EL installed 28 M
kernel i686 2.6.9-42.EL installed 27 M
kernel i686 2.6.9-42.0.10.EL installed 27 M
kernel i686 2.6.9-55.0.9.EL installed 28 M
kernel-devel i686 2.6.9-55.0.12.EL installed 12 M
kernel-devel i686 2.6.9-55.0.2.EL installed 12 M
kernel-devel i686 2.6.9-42.0.2.EL installed 11 M
kernel-devel i686 2.6.9-42.0.8.EL installed 11 M
kernel-devel i686 2.6.9-42.EL installed 11 M
kernel-devel i686 2.6.9-55.0.9.EL installed 12 M
kernel-devel i686 2.6.9-42.0.10.EL installed 11 M
kernel-devel i686 2.6.9-55.EL installed 12 M
kernel-devel i686 2.6.9-42.0.3.EL installed 11 M
kernel-hugemem-devel i686 2.6.9-55.EL installed 12 M
kernel-hugemem-devel i686 2.6.9-55.0.9.EL installed 12 M
kernel-hugemem-devel i686 2.6.9-55.0.2.EL installed 12 M
kernel-hugemem-devel i686 2.6.9-55.0.12.EL installed 12 M
kernel-smp i686 2.6.9-55.0.9.EL installed 29 M
kernel-smp i686 2.6.9-55.0.2.EL installed 29 M
kernel-smp i686 2.6.9-42.0.8.EL installed 29 M
kernel-smp i686 2.6.9-42.0.10.EL installed 29 M
kernel-smp i686 2.6.9-55.EL installed 29 M
kernel-smp i686 2.6.9-55.0.12.EL installed 29 M
kernel-smp-devel i686 2.6.9-55.0.2.EL installed 12 M
kernel-smp-devel i686 2.6.9-55.0.12.EL installed 12 M
kernel-smp-devel i686 2.6.9-55.0.9.EL installed 12 M
kernel-smp-devel i686 2.6.9-55.EL installed 12 M
kernel-utils i386 1:2.4-13.1.105 installed 1.6 M
Removing for dependencies:
freeradius i386 1.0.1-3.RHEL4.5 installed 3.8 M
freeradius-mysql i386 1.0.1-3.RHEL4.5 installed 6.2 k
freeradius-postgresql i386 1.0.1-3.RHEL4.5 installed 6.8 k
freeradius-unixODBC i386 1.0.1-3.RHEL4.5 installed 7.0 k
hpoj i386 0.91-9 installed 799 k
hpoj-devel i386 0.91-9 installed 47 k
kdeaddons i386 3.3.1-2 installed 6.8 M
kdeaddons-atlantikdesigner i386 3.3.1-2 installed 171 k
kdeaddons-xmms i386 3.3.1-2 installed 175 k

kdeadmin i386 7:3.3.1-2 installed 844 k
kdeartwork i386 3.3.1-2 installed 9.6 M
kdeartwork-icons i386 3.3.1-2 installed 11 M
kdebase i386 6:3.3.1-7.el4.centos installed 45 M
kdebase-devel i386 6:3.3.1-7.el4.centos installed 224 k
kdegames i386 6:3.3.1-2 installed 15 M
kdegames-devel i386 6:3.3.1-2 installed 414 k
kdegraphics i386 7:3.3.1-9.el4_6 installed 11 M
kdegraphics-devel i386 7:3.3.1-9.el4_6 installed 61 k
kdemultimedia i386 6:3.3.1-2 installed 17 M
kdemultimedia-devel i386 6:3.3.1-2 installed 1.0 M
kdenetwork i386 7:3.3.1-2.3 installed 21 M
kdenetwork-devel i386 7:3.3.1-2.3 installed 35 k
kdenetwork-nowlistening i386 7:3.3.1-2.3 installed 118 k
kdepim i386 6:3.3.1-2.2 installed 30 M
kdepim-devel i386 6:3.3.1-2.2 installed 1.3 M
kdesdk i386 3.3.1-2 installed 14 M
kdesdk-devel i386 3.3.1-2 installed 140 k
kdeutils i386 6:3.3.1-2 installed 7.7 M
kdeutils-devel i386 6:3.3.1-2 installed 72 k
kdevelop i386 9:3.1.1-2 installed 37 M
libsane-hpoj i386 0.91-9 installed 61 k
lm_sensors i386 2.8.7-2.40.5 installed 1.5 M
lm_sensors-devel i386 2.8.7-2.40.5 installed 236 k
net-snmp i386 5.1.2-11.el4_6.11.3 installed 1.9 M
net-snmp-devel i386 5.1.2-11.el4_6.11.3 installed 543 k
net-snmp-perl i386 5.1.2-11.el4_6.11.3 installed 379 k
net-snmp-utils i386 5.1.2-11.el4_6.11.3 installed 299 k
xojpanel i386 0.91-9 installed 81 k


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.

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-16-2008, 11:54 PM
fred smith
 
Default yum remove -- wants to remove a ton of stuff

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@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) -----------------------------
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 05:40 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org