LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-14-2004, 07:32 AM   #1
wytiger
Member
 
Registered: Nov 2003
Location: Virginia
Distribution: Fedora Core 4
Posts: 121

Rep: Reputation: 15
Question Correct way to remove older, unneeded kernels?


Since I started with Fedora, I have upgraded the kernel as the new ones came out. Now, when my system boots I see four different kernel options to choose from. As far as I can tell, the latest kernel I have is working just fine, so I have two questions to pose:

1. How long is "long enough" to determine that the new kernel is working just fine?

2. Once determining the new kernel is working, how do I safely and correctly remove the older ones?
 
Old 01-14-2004, 02:30 PM   #2
wiraone
Member
 
Registered: Nov 2003
Location: Diawang-awangan
Distribution: Ubuntu Hoary!
Posts: 319

Rep: Reputation: 30
1. When you think that the older kernel is no longer needed, then its the time to remove it .. basically for me, that mean regularly using the new kernel for a couple of weeks before I decided to remove the older kernel.
2. If you're using rpm to install the new kernel, you can use rpm -e to remove it .. eg:
$ rpm -e kernel-2.4.22-1.2115.nptl
 
Old 01-14-2004, 03:44 PM   #3
wytiger
Member
 
Registered: Nov 2003
Location: Virginia
Distribution: Fedora Core 4
Posts: 121

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by wiraone
2. If you're using rpm to install the new kernel, you can use rpm -e to remove it .. eg:
$ rpm -e kernel-2.4.22-1.2115.nptl
I used up2date to update it. I assume this is the same?

Also, will 'rpm -e'ing the kernel also remove the entry from grub?
 
Old 01-14-2004, 06:17 PM   #4
wiraone
Member
 
Registered: Nov 2003
Location: Diawang-awangan
Distribution: Ubuntu Hoary!
Posts: 319

Rep: Reputation: 30
$ rpm -qa | grep kernel

The above command will list out all kernel RPMs installed and choose the one you want to remove ..

Grub entries should be removed by the RPM script, but I've no idea if it will do this .. haven't done this for quite a while ..
 
Old 01-14-2004, 06:19 PM   #5
karlan
Member
 
Registered: Aug 2003
Location: San Francisco, California
Distribution: Slackware
Posts: 158

Rep: Reputation: 30
yes, seems to work very well too, most of the time you should still check over /boot/grub/grub.conf to check

btw about the trick wiraone told you:
if you didn't already know grep will look for words when a program pipes("|") its stout to it, works for commands like ls too

Last edited by karlan; 01-14-2004 at 06:21 PM.
 
Old 01-15-2004, 07:00 AM   #6
wytiger
Member
 
Registered: Nov 2003
Location: Virginia
Distribution: Fedora Core 4
Posts: 121

Original Poster
Rep: Reputation: 15
wiraone, all your responses did the trick! Thanks!

I have yet to reboot though to see if they are gone from the boot loader yet. I will post here for others interested when I do. I will also follow up with results from karlan's suggestion as well.
 
Old 01-16-2004, 04:30 AM   #7
FXRS
Member
 
Registered: Jun 2003
Posts: 144

Rep: Reputation: 15
Don't you have to do a "rpm -e --nodeps 'name of kernel here' "? When I removed my old kernels I used the --nodeps command with it.

FX
 
Old 01-16-2004, 09:36 PM   #8
wytiger
Member
 
Registered: Nov 2003
Location: Virginia
Distribution: Fedora Core 4
Posts: 121

Original Poster
Rep: Reputation: 15
wiraone, karlan:
Removing the kernel did, in fact, remove it from grub as well, and a reboot now only shows my latest kernel. Thanks again!

Oh, and nope, didn't have to use --nodeps.
 
  


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
How to remove old kernels safely satimis Fedora 11 08-21-2004 08:06 AM
how to remove an older version of glib halamazoo Linux - Newbie 2 06-14-2004 10:42 AM
remove old kernels dvsOasis Slackware 1 02-14-2004 08:56 PM
how to remove old kernels? gmoney Red Hat 1 10-15-2003 05:21 AM
How do I safely remove old kernels? Amerist Linux - General 4 11-02-2002 10:56 PM


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