LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 08-03-2004, 03:53 AM   #1
gchandler
Member
 
Registered: Aug 2003
Location: Australia
Distribution: Linux Mint 10
Posts: 69

Rep: Reputation: 15
How to uninstall a non-rpm kernel recompile


I have recompiled my kernel in the hope of getting rid of rivafb to enable nvidia driver to work. Unfortunately it didn't work (kernel panic) and I want to uninstall the recompiled kernel.

Rpm doesn't do this. Is there another way when the recompile is done manually?
 
Old 08-03-2004, 04:13 AM   #2
lasindi
Member
 
Registered: Apr 2004
Distribution: Slackware, Ubuntu
Posts: 101

Rep: Reputation: 15
I'm not sure if there's a way to actually uninstall a kernel, other than simply deleting the compressed image (vmlinuz-x.x.x) from /boot. If you can't even boot (i.e., you didn't leave your old kernel; that's never a good idea) then you'll have to boot from the first Fedora disc and use the "rescue" feature to fix your computer. Give some more details and perhaps we can help you.

lasindi
 
Old 08-03-2004, 11:31 PM   #3
gchandler
Member
 
Registered: Aug 2003
Location: Australia
Distribution: Linux Mint 10
Posts: 69

Original Poster
Rep: Reputation: 15
I did leave the original kernel and am using it to write this. This was my first attempt to recompile a kernel trying to follow the many articles explaining how. However they don't explain how to delete one, just how to build one. I am aware that an RPM upgrade or install changes all sorts of settings/config files/files etc automatically, including Grub config. But I am not clear what all the files are that need to be removed or what configs need to be rewritten to reverse the process manually. Is there a "how too" anywhere that can save you explaining?

The kernel I am using and the recompile are 2.6.6-1.435.2.3


many thanks for your help
 
Old 08-04-2004, 04:30 PM   #4
lasindi
Member
 
Registered: Apr 2004
Distribution: Slackware, Ubuntu
Posts: 101

Rep: Reputation: 15
I never do RPM kernel upgrades. I always download new kernel sources from kernel.org, compile them, and install them. If you want to make it so that it seems that the kernel never existed, I would:

1) Delete the compressed kernel image in /boot (vmlinuz-2.6.6-1.435.2.3).
2) Delete the entry in /boot/grub/grub.conf.

You can also delete the sources, if you don't plan using them ever again. If you want to actually recompile it all, do "make clean" in the source's directory, and then "make && make modules_install" to compile again. To my knowledge, that's how you would "uninstall" a kernel.

lasindi
 
Old 08-04-2004, 10:10 PM   #5
Sledge
Member
 
Registered: Nov 2003
Distribution: Fedora Core 6
Posts: 76

Rep: Reputation: 15
I recently was playing around compiling kernels but I didn't really want to keep any of them. I deleted:
-the reference in /boot/grub/grub.conf.
-the /lib/modules/"kernel I was deleting" directory.
-the relevant initrd, system-map, vmlinuz, and config files in /boot.

I haven't seen any ill effects from doing this.
 
Old 08-05-2004, 06:47 AM   #6
gchandler
Member
 
Registered: Aug 2003
Location: Australia
Distribution: Linux Mint 10
Posts: 69

Original Poster
Rep: Reputation: 15
I have implemented both these suggestions...and without drama! Many thanks for your help

GC
 
  


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
Uninstall RPM manojg Linux - Newbie 3 10-09-2007 11:53 AM
Recompile Kernel .src/.rpm - advice seek lets-eat-gary Linux - Software 6 05-10-2005 02:19 AM
rpm uninstall wedgeworth Linux - Newbie 1 05-21-2004 11:08 AM
HOWTO uninstall the kernel 2.6.0 (not rpm). NAKED_DEXTER Linux - Newbie 4 03-07-2004 06:47 PM
Kernel-Source rpm Install/Uninstall error in Fedora i286 Linux - General 1 12-29-2003 11:31 AM


All times are GMT -5. The time now is 02:41 AM.

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