[mythtv-users] Removing old kernels

Tony Rein trein at one.net
Tue Jan 13 09:58:25 EST 2004


On Mon January 12 2004 18:29, John F DeLuca wrote:
> I'm a newbie to Linux and am therefore grateful to everyone for such a
> fine product and for (thanks to Jarod's guide and Axel's rpms) an easy
> install process.  I have a question or two about the kernel installs via
> Axel's rpms...
>
> As I update to get latest ivtv drivers or something, I've found that I
> also need to update my kernel as Axel usually keeps things like drivers
> etc for only the most recent kernel.  Anyway, I have ended up with 4-5
> kernels in the boot list.  While I assume this does no harm, is it
> recommended to remove these, and if so how?  Do I just apt-get remove and
> edit my grub.conf?

Yes, more or less, but it's actually even easier than that. I would recommend:

1. As root, type "rpm -q kernel" at the command line. This will show you a 
list of the kernel packages you have installed. It will look something like:

[root at wilbur root]# rpm -q kernel
kernel-2.4.22-1.2115.nptl
kernel-2.4.22-1.2135.nptl

2. Pick the one you want to get rid of. In the example above,   
"kernel-2.4.22-1.2115.nptl" is the old one. Still as root, type
"rpm -e  kernel-2.4.22-1.2115.nptl".

This will remove that particular kernel package and edit grub.conf for you. 
The only caution: make darned sure that you're not removing the kernel that's 
currently running (use the command "uname -r" to check which one that is) or 
the only one that will boot the machine.

Have fun!

Tony




More information about the mythtv-users mailing list