fred smith
2008-Jul-16 15:55 UTC
[CentOS] yum remove <old kernel pkgs> -- wants to remove a ton of stuff
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]: -- ---- Fred Smith -- fredex at fcshome.stoneham.ma.us ----------------------------- "Not everyone who says to me, 'Lord, Lord,' will enter the kingdom of heaven, but only he who does the will of my Father who is in heaven." ------------------------------ Matthew 7:21 (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/5e07fbf2/attachment-0001.sig>
Jeff
2008-Jul-16 16:03 UTC
[CentOS] yum remove <old kernel pkgs> -- wants to remove a ton of stuff
On Wed, Jul 16, 2008 at 10:55 AM, fred smith <fredex at fcshome.stoneham.ma.us> 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]:I think kernel-utils is your dependency problem. That package is not tied to kernel versions (take a look at it's version number). It's a standalone thing. Remove it from your list and try again. -- Jeff
Stephen John Smoogen
2008-Jul-16 16:05 UTC
[CentOS] yum remove <old kernel pkgs> -- wants to remove a ton of stuff
On Wed, Jul 16, 2008 at 9:55 AM, fred smith <fredex at fcshome.stoneham.ma.us> 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. >would need to see list to know whats causing the problem... without that we are shooting in the wind. -- Stephen J Smoogen. -- BSD/GNU/Linux How far that little candle throws his beams! So shines a good deed in a naughty world. = Shakespeare. "The Merchant of Venice"
Peter Kjellstrom
2008-Jul-16 16:07 UTC
[CentOS] yum remove <old kernel pkgs> -- wants to remove a ton of stuff
On Wednesday 16 July 2008, fred smith wrote: ...> 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,You told it to remove kernel-utils... You want to keep that one. /Peter -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: <http://lists.centos.org/pipermail/centos/attachments/20080716/f0388df7/attachment-0001.sig>
Johnny Hughes
2008-Jul-16 16:09 UTC
[CentOS] yum remove <old kernel pkgs> -- 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. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 251 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20080716/5e172e2d/attachment-0001.sig>