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

Wed Jul 16 16:03:53 UTC 2008
Jeff <jlar310 at gmail.com>

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