LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

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

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


Hi,

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 ftp.kernel.org.......

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?

tanks.
 
Old 03-07-2004, 06: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, 06:28 PM   #3
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Moved: Not a Success Story.
 
Old 03-07-2004, 06:28 PM   #4
vimico
Member
 
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: System.map-2.X.X
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, 06:47 PM   #5
NAKED_DEXTER
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?
Tanks.
 
  


Reply


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 02:17 AM
Source uninstall with 'make uninstall' HOWTO! Creeps Linux - Newbie 6 09-14-2004 11:03 AM
How to uninstall a non-rpm kernel recompile gchandler Fedora 5 08-05-2004 06:47 AM
Kernel-Source rpm Install/Uninstall error in Fedora i286 Linux - General 1 12-29-2003 11:31 AM
Kernel RPM HowTo ?? BaerRS Linux - General 1 05-15-2003 11:10 AM


All times are GMT -5. The time now is 12:17 PM.

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