Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-07-2004, 06:48 PM   #1
LQ Newbie
Registered: Jan 2004
Distribution: Fedora
Posts: 9

Rep: Reputation: 0
Unhappy HOWTO uninstall the kernel 2.6.0 (not rpm).


I using a rpm kernel packages from redhat. 2.4.X

And I compile and install the kernel 2.6.0, I wanna remove that kernel...
How to remove that kernel from the system?
When I install:

wget -c

tar jxvf kern....

cd /usr/src/linux-2.6.0/
make mrproper
make menuconfig...
make bzImage
make modules
make modules_install
make install.

Now that make modules_install and make install, put various files in the system, /lib /boot etc... how to remove that?

Old 03-07-2004, 07:11 PM   #2
Andrew Benton
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Well you could just delete them but then you wouldn't have a kernel to run your computer the next time you boot, so it would make more sense to compile a new kernel and copy it over the one you don't like
Old 03-07-2004, 07:28 PM   #3
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 252Reputation: 252Reputation: 252
Moved: Not a Success Story.
Old 03-07-2004, 07:28 PM   #4
Registered: Jan 2004
Distribution: Debian, Ubuntu
Posts: 118

Rep: Reputation: 15
If you compile and install a kernel "manually" and you want to remove it, you have to do that manually, too. (Just make sure that you still have another kernel on your hd that you can use when you boot the next time).

Fortunately, it is quite simple to identify the files related to a specific kernel.

In /boot:

Files that belong to a kernel 2.X.X will have that number in their file name as well.

First there is the kernel itself: vmlinuz-2.X.X
Second, a symbol table named:
Most of the time a copy of the config file that has being used for compiling the kernel is being copied to /boot, too: config-2.X:X

The modules produced during compilation are stored in /lib/modules/2.X.X

You can simply delete them all and the kernel is gone.

DON'T FORGET to reconfigure the the boot manager (lilo / grub) to use another kernel and test it before you remove anything.
Old 03-07-2004, 07:47 PM   #5
LQ Newbie
Registered: Jan 2004
Distribution: Fedora
Posts: 9

Original Poster
Rep: Reputation: 0
I use a kernel 2.4.22 and I want to remove a 2.6.0..

I only to do:
cd /boot
del *2.6*
cd /lib/modules
del -r *2.6*
cd /usr/src/
rm -r *2.6*


In the system do not have links ou files with references to that kernel?


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto Uninstall Noatun fortezza Linux - Software 1 11-02-2005 03:17 AM
Source uninstall with 'make uninstall' HOWTO! Creeps Linux - Newbie 6 09-14-2004 12:03 PM
How to uninstall a non-rpm kernel recompile gchandler Fedora 5 08-05-2004 07:47 AM
Kernel-Source rpm Install/Uninstall error in Fedora i286 Linux - General 1 12-29-2003 12:31 PM
Kernel RPM HowTo ?? BaerRS Linux - General 1 05-15-2003 12:10 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:53 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