Re: eliminating old kernals



Jan Gerrit Kootstra wrote:
Matt Giwer wrote:
decrepit wrote:
Think this has been answered a few times, think I may have copied this from here myself.
How to remove old kernels:
Run
'rpm -qa | grep kernel'
to see which kernels you have installed.

Then, remove kernels starting with lowest number using this command:
'rpm -e kernel-version'

I also remove the associated develop files as well. It's never caused a problem for me, but I usually leave 2 kernels in there.

Thanks. I was going to do it manually but the safer rpm method is better. My question was only if it caused problems.

After several yum kernal upgrades I find my /boot partition filling up. I presume I can simply erase all but the present one (after making a boot disk for it) without any harm. Am I correct or looking for trouble?

Matt,

rpm -e does not give you trouble, it refuses to delete packages if you would break dependancies.

removal by hand makes the rpm database inconsitant (leaves the packagename in the database, while the files are removed). So do not do that to avoid trouble.

Gives you strange behavior, like you do not want to use a program anymore and after running up2date or yum you get it back with a newer version.

Point taken. Thanks.

--
80% of the Palestinians turned out for their last election. Maybe we should
put them in charge of exporting democracy.
-- The Iron Webmaster, 3640
nizkor http://www.giwersworld.org/nizkook/nizkook.phtml
Blame Israel http://www.ussliberty.org a10
.



Relevant Pages

  • RPM Troubles... Again
    ... Well, for NO apparent reason AT ALL, RPM is giving me errors while ... Here are the errors while trying to grep the kernels I ... cannot open Packages index using db3 - Resource temporarily ...
    (RedHat)
  • Re: / out of space - what to do?
    ... > certainly have at least one kernel RPM installed. ... > Clemson University Math Sciences ... I tend to get a little anal when it comes to RPM'ing off kernels ... to get your currently running kernel ...
    (Fedora)
  • Re: [opensuse] KOTD source - strange rpm dependency failure
    ... failure on rpm -ivh ... I've been building kernels off and on for a few ... Update rpm. ... We switched to compressing the rpm payload with lzma because ...
    (SuSE)
  • Re: eliminating old kernals
    ... to see which kernels you have installed. ... 'rpm -e kernel-version' ... Am I correct or looking for trouble? ... removal by hand makes the rpm database inconsitant ...
    (linux.redhat)
  • Re: VCD in drive locks the box
    ... While installing 2.6.12, I must have used rpm -Uvh so old one is removed. ... > from the grub boot menu.. ... > older kernels with yum.. ...
    (Fedora)