Fedora Linux Support Community & Resources Center
Old 29th September 2008, 03:35 PM
FedorLinu Offline
Registered User
Join Date: Sep 2008
Posts: 5
after upgrading kernel, how to safely remove the old one

Hi, i would like to know to safely remove an old kernel version after upgrading the system to a new one. I did the same way i use to do on Debian, the problem is that it deleted both kernels in the system though.

In debian I use the download manager to delete it:

# apt-get remove --purge kernel-2.6.xx-xx

I tried to delete the old kernel in Fedora using yum (yum remove) but it deleted both (the old and the new one) . I'm new using Fedora, and i assume i did it wrong.
So , i had to use the DVD installation to install the old kernel again and then update the kernel. Now I have both new and old one, hoping to get rid of the old and leave only the new kernel.

Any help?

p.s: my English is not that good, so I'm sorry any mistake

Reply With Quote
Old 29th September 2008, 03:48 PM
johno12345 Offline
Registered User
Join Date: Jun 2004
Location: Lancashire, UK
Posts: 332
as default yum leaves current + previous installed, this is to ensure that if you have any problems with current you always have one to fall back on.
Fedora Ambassador
Running Fedora since FC1, running Redhat since 5(not EL).
Registered Linux user number 485853
Rossendale and East Lancashire (UK) LUG http://www.rosslug.org.uk
Reply With Quote
Old 29th September 2008, 04:02 PM
thom12 Offline
Registered User
Join Date: Dec 2004
Location: DK
Posts: 34
To list installed kernels:

rpm -qa | grep ^kernel

To uninstall:

rpm -e --allmatches kernel-xyz.rpm

For more rpm <options> see:

man rpm
Reply With Quote
Old 29th September 2008, 05:28 PM
JohnVV Offline
Registered User
Join Date: Aug 2005
Location: Ann Arbor
Age: 50
Posts: 3,952
do not remove the old kernel.If you end up having a problem with the new one you will be forced to reinstall fedora .The option to boot from the old kernel will be gone .
BUT this is your computer do what you want!
OpenSUSE 13.2-64bit & Scientific Linux 6.6-64bit ( fedora 4 to 11) and 20 on KVM
My Celestia Downloads

h t t p ://celestiamotherlode.net/catalog/show_creator_details.php?creator_id=10
Reply With Quote
Old 29th September 2008, 06:43 PM
FedorLinu Offline
Registered User
Join Date: Sep 2008
Posts: 5
Thanks fellas for the fast reply.

After your advices i'll keep it for awhile.
Reply With Quote
Old 29th September 2008, 07:02 PM
stoat Offline
Registered User
Join Date: Jun 2006
Posts: 7,548
Originally Posted by FedorLinu

After your advices i'll keep it for awhile.
Actually, you should forget all about it. It will be removed automatically when you have accumulated the maximum number of kernels set by the value of installonly_limit in /etc/yum.conf. Nowadays, the default is 3. That means once you have updated the kernel enough times to have three installed, from then on the oldest one will be removed automatically after future kernel updates. Your grub.conf and the GRUB menu also are adjusted automatically for you. You are allowed to edit /etc/yum.conf and change the value of installonly_limit up or down. But I recommend leaving it alone at 2 or 3. Too many old kernels is a pointless waste of disk space. And no old kernels at all is asking to be locked out of your system someday when a new kernel comes along and busts the wheels off of it.

Last edited by stoat; 29th September 2008 at 09:26 PM.
Reply With Quote

kernel, remove, safely, upgrading

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
safely remove USB-notification bd54338rre Using Fedora 1 4th February 2009 11:06 PM
How can I safely remove the old kernel? xploder Alpha - Beta (Fedora 9 Only) 6 13th July 2008 10:58 PM
[FC5] Upgrading kernel and sources safely? littlebigfred EOL (End Of Life) Versions 6 1st July 2006 11:53 PM
How to remove old kernels safely satimis Using Fedora 15 31st August 2004 03:48 PM

Current GMT-time: 11:07 (Wednesday, 20-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

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