LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-01-2005, 01:55 AM   #1
ktt76
LQ Newbie
 
Registered: Dec 2005
Location: finland
Posts: 2

Rep: Reputation: 0
removing old kernel versions


hey!

rpm -q kernel give me this:
kernel-2.6.9-1.667
kernel-2.6.12-1.1376_FC3
kernel-2.6.12-1.1378_FC3
kernel-2.6.12-1.1380_FC3
kernel-2.6.12-1.1381_FC3

is it okay just rpm -e the-few-oldest-versions, or do i have to do something else too to remove the few oldest versions of kernel ?

-ktt76-
 
Old 12-01-2005, 02:04 AM   #2
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
If you are using lilo for booting, make sure to edit /etc/lilo.conf to remove them from the boot list, then rerun lilo to reinstall the boot menu. If you are using grub, edit /boot/grub/menu.lst. You don't need to reinstall grub, as it will grap the menu.lst file on the fly.

Other than that, make sure any symbolic links in /boot point to real versions of the kernel and initrd.img files after removing unwanted kernels.
 
Old 12-01-2005, 02:39 AM   #3
ktt76
LQ Newbie
 
Registered: Dec 2005
Location: finland
Posts: 2

Original Poster
Rep: Reputation: 0
thanks.

/boot/grub/menu.lst was updated by system when rpm -q old-kernel...

-ktt76-
 
Old 12-01-2005, 02:48 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally posted by GrueMaster
If you are using lilo for booting, make sure to edit /etc/lilo.conf to remove them from the boot list, then rerun lilo to reinstall the boot menu. If you are using grub, edit /boot/grub/menu.lst. You don't need to reinstall grub, as it will grap the menu.lst file on the fly.

Other than that, make sure any symbolic links in /boot point to real versions of the kernel and initrd.img files after removing unwanted kernels.
You don't need to edit grub or lilo when you install or uninstall a kernel using rpm on FC and other Redhat derivatives, this is automatically done for you.
 
  


Reply



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
kernel versions r.stiltskin Debian 1 10-23-2004 09:25 AM
How to keep modules/drivers across kernel recompiles and kernel versions? Pisces107 Linux - General 5 01-21-2004 08:29 PM
Kernel versions i286 Linux - General 3 01-11-2004 12:07 PM
kernel versions??? trey85stang Linux - Newbie 5 01-05-2004 04:28 PM
Kernel Versions 0versight Linux - Newbie 5 01-16-2003 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:03 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration