LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-10-2005, 01:29 AM   #1
seow_ming
Member
 
Registered: Mar 2004
Location: Currently in China
Distribution: Fedora 9
Posts: 130

Rep: Reputation: 15
How to remove my previous Kernal after Kernel Update?


Dear all,

I need your help here about how to remove my previous Linux Kernel from the Booting screen once i on my computer?

I'm using FC2 now and just updated my Kernel from and older version to a newer one. And after I reboot my computer. I found out that, Now i got two version of kernel for me to choose to boot for. Can somebody help? How can i remove the older one? Thanks.
 
Old 07-10-2005, 01:48 AM   #2
poopoo
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Rep: Reputation: 0
1 Make a back up of lilo.conf or grub.conf depend on your system.

2 To remove the kernel option from lilo or grub , you can modify /etc/lilo.conf (or /etc/grub.conf) then run lilo command as root.

3 To remove actual kernel , delete System.map-kernelversion , vmlinuz-kernelversion , bzImage-kernelversion . Before you reboot make sure there is no broken link in /boot dir and image option is pointing correctly .

4 If you accidently srew things up, use a bootable cd and change it back. good luck

Good luck
Hung Nguyen
 
Old 07-10-2005, 09:24 AM   #3
seow_ming
Member
 
Registered: Mar 2004
Location: Currently in China
Distribution: Fedora 9
Posts: 130

Original Poster
Rep: Reputation: 15
Dear poopoo,

Thanks a lot. I followed what you showed me and it's really works!! Thankyou so much!
 
Old 07-10-2005, 09:50 AM   #4
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Just an additional note: If your new kernel works properly and you deleted the old one like poopoo explained, you might have some unrequired kernel modules in /lib/modules/<old-version>. To safe some space, you could delete them as well.
 
Old 07-10-2005, 04:20 PM   #5
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
Since hes using fedora couldn't he just use rpm -e kernel-whatever if he removes its by hand it remains in the rpm database.
 
Old 07-11-2005, 02:19 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally posted by Boow
Since hes using fedora couldn't he just use rpm -e kernel-whatever if he removes its by hand it remains in the rpm database.
Yeah, the method posted by poopoo is not good if you are removing a kernel installed via rpm. You are better of doing,
Code:
$rpm -qa | grep -i kernel
A list of installed kernels will be listed. Remove the one you don't want by doing
Code:
#rpm -e kernel-version
Running the command above also removes the kernel from the list of available kernels in grub so you don't have to edit grub manually.
 
Old 07-12-2005, 10:29 AM   #7
seow_ming
Member
 
Registered: Mar 2004
Location: Currently in China
Distribution: Fedora 9
Posts: 130

Original Poster
Rep: Reputation: 15
Wow,~~
You all are so helpful!! The last way really works and really helped me to remove everything automatically! Thanks everyone.

Adam
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernal Update canuck_barlow SUSE / openSUSE 2 03-30-2005 12:42 PM
Does Red Hat auto update remove old kernel? lnthai2002 Linux - Software 13 01-15-2005 09:23 PM
How to remove/reinstall OR revert X to a previous version? C38368 Linux - Newbie 1 05-26-2004 02:57 AM
How to remove a kernal recompile that fails? Crasherz Linux - Newbie 9 11-11-2003 08:24 AM
kernal update 2.2 to 2.6 dandysf Linux - Newbie 0 08-21-2003 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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