Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-31-2002, 06:18 AM   #1
Registered: Apr 2002
Location: Germany
Distribution: RedHat & SuSE
Posts: 106

Rep: Reputation: 15
Question How do I safely remove old kernels?

I have a bunch of older kernels on my system now and I'm using the latest according to redhat 8's up2date applet. My question is how do I get rid of these older kernels? I know how to remove the entries in GRUB, but I'm interested in freeing up some disk space. Will I be saving a lot of space if I delete an older kernel?
Old 10-31-2002, 06:29 AM   #2
Registered: Sep 2002
Location: Germany
Distribution: SuSE 8.0
Posts: 96

Rep: Reputation: 15
If you installed the kernels from source just delete the image in /boot, the ramdisk image (if any) and the according (if any), then delete the modules /lib/modules-kernelversion and the kernel source in /usr/src/linux-kernelversion

But make sure you don't delete things of your actual kernel
Old 10-31-2002, 06:32 AM   #3
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
If you've removed the entries from your grub conf then you can safely delete the kernel images, you won't save a huge amount of space though, kernel images are usually small enough to fit on a floppy, where you can free up some space is by deleting the kernel modules that belong to the old kernels, have a look in /lib/modules/<old-kernel-versions>
Old 11-02-2002, 12:44 PM   #4
Registered: Apr 2002
Location: Germany
Distribution: RedHat & SuSE
Posts: 106

Original Poster
Rep: Reputation: 15
thanks for the help.
Old 11-02-2002, 10:56 PM   #5
Registered: Jul 2002
Location: Ohio, USA
Distribution: Redhat, Gentoo, Solaris, HP-UX, etc...
Posts: 391

Rep: Reputation: 30
Someone correct me if I am wrong, but you probably should use the "rpm -e" method so that the rpm database doesn't get all fouled up. That is assuming that you are installing the new kernels with a "rpm -i" option.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to safely remove linux partition from a dual boot system? parv Linux - Newbie 7 05-01-2012 09:59 AM
How to safely remove linux :( TRUSTpunk Linux - Newbie 11 01-07-2005 12:55 AM
How to remove old kernels safely satimis Fedora 11 08-21-2004 08:06 AM
Safely remove USB Flash drive? Guitarist88 Linux - Newbie 3 05-26-2004 03:35 PM
How to remove lilo from MBR safely? eaglegst Debian 1 12-14-2003 07:53 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:50 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration