Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 3rd August 2007, 07:45 PM
larryt Offline
Registered User
 
Join Date: Jul 2007
Posts: 82
How to remove unwanted kernels

Hi all,

I assume that to remove unwanted kernels, that I cd to /boot and remove the ones that I don't want any more.

I have a PAE enabled kernel that I have built a vmware kernel mod against. The others just add confusion.

Anybody see any problems with me doing that?

Larry
Reply With Quote
  #2  
Old 3rd August 2007, 08:52 PM
bob's Avatar
bob Offline
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,213
No, you can certainly remove them "yum remove kernel 2.xxxxxxxxx" and then 'yum --exclude=kernel update' . You might just want to hang onto a spare in case you ever have problems, but that would be the only thing I can think of.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #3  
Old 3rd August 2007, 09:08 PM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
Quote:
Originally Posted by bob
No, you can certainly remove them "yum remove kernel 2.xxxxxxxxx" and then 'yum --exclude=kernel update' . You might just want to hang onto a spare in case you ever have problems, but that would be the only thing I can think of.
You can get the kernel names with this command

yum list kernel* |grep installed
__________________
My Hardware
- CPU: AMD Phenom II X6 Hex Core 1055T 95W Edition @3.5Ghz
- Motherboard: Gigabyte GA-880GM-UD2H
- Cooler: Corsair H50 CPU Cooler
- RAM: Corsair Dominator 8GB (4x2GB) DDR3 1600MHz
- Graphics: Gigabyte GeForce GTS 450 OC 1024MB GDDR5
Reply With Quote
  #4  
Old 4th August 2007, 01:42 PM
larryt Offline
Registered User
 
Join Date: Jul 2007
Posts: 82
Hi,

Thank you both very much for your help. I followed the instructions but had a little hitch. The kernel I was running had both a PAE extension and a non PAE extension. I was running and wanted to keep the PAE kernel. Both were of the same version. So when I gave the yum remove kernel 2.xxxxxx without the PAE extension, low and behold it removed BOTH my kernels, which at that point were my last two kernels. So I had NO kernels in /boot.

I went back through my bash history and found the yum command where I downloaded and installed the PAE kernel. I repeated that to get it back. I then checked /boot and sure enough, I had it back.

On reboot though, grub complained that the kernel to boot off of was missing. DISASTER!

I rebooted off the install DVD, selected rescue mode, mounted the /boot and / file systems and checked the /boot image against the /etc/grub.conf file and sure enough, grub was still focused on one of the old kernels. I fixed this by giving it the kernel name that matched /boot, then pulled the DVD and rebooted. The machine came up fine.

I've since gotten other work done with this by integration of the Nvidia drivers and the Vmware support all in my PAE enabled kernel.

Thank you all very much on your support in this matter. If it wasn't for the help of contributors like yourself, I'd be sunk on Fedora long ago. You are all very much appreicated.

Larry
Reply With Quote
  #5  
Old 4th August 2007, 02:07 PM
bob's Avatar
bob Offline
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,213
And, thanks very much for posting back and mentioning what you did and the results. It will probably keep someone else from going through a bit of hell like you did. Sorry that I didn't think that far ahead to recognize what was going to happen with that command.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #6  
Old 4th August 2007, 02:20 PM
larryt Offline
Registered User
 
Join Date: Jul 2007
Posts: 82
Hi Bob,

No problem, it's all part of my learning curve. Your continued help and support is welcome.

Larry
Reply With Quote
  #7  
Old 4th August 2007, 07:04 PM
lazlow Offline
Registered User
 
Join Date: Aug 2005
Posts: 3,172
Larry

This is one of those thing that a gui front end comes in really handy for. I use smart package manager. It shows you what you have installed with a green box if you want to remove it just click on it and then click on the action button.

yum install smart-gui

If shows up under Applications->system tools-> smart package manger (at least on F7). It is pretty handy for a lot of stuff and is quite a bit faster than yum.

Good Luck
Lazlow
Reply With Quote
Reply

Tags
kernels, remove, unwanted

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
remove unwanted stuff with sed storskogen Using Fedora 2 6th July 2008 04:55 PM
remove an unwanted rpm Jeff Sadowski Using Fedora 2 22nd March 2007 05:05 PM
how to remove unwanted driver first007boy Hardware & Laptops 6 14th January 2006 02:46 AM
How to disable or remove unwanted plug-in from firefox first007boy Using Fedora 2 18th October 2005 08:09 AM


Current GMT-time: 06:17 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat