Fedora Linux Support Community & Resources Center
  #1  
Old 14th September 2011, 05:47 PM
simone89 Offline
Registered User
 
Join Date: Sep 2009
Posts: 9
linuxfedorafirefox
removing a kernel

Hello,

I'm new to this forum and was wondering if it's safe to remove a linux kernel in order to get updates. I've never had to remove a kernel before. What are some of the reasons for removing a kernel?

I'm trying to run a software update and the message is to
remove The Linux Kernel

I can't get any updates without removing it first. I'm running Fedora release 14. Any help would be much appreciated.
Reply With Quote
  #2  
Old 14th September 2011, 07:34 PM
Hewjr100 Offline
Registered User
 
Join Date: Apr 2010
Location: Poughkeepsie New York
Age: 53
Posts: 398
linuxfirefox
Re: removing a kernel

If you want to remove a kernel go in terminal login as root, ie su enter then password. at the root prompt type in "yum remove kernel" without the quotes. It should not remove loaded kernel and will let you know which one is being removed.

Henry
__________________
Fedora 20 64 Bit
HP Envy m6-1225dx Notebook.
8 GB Ram 750 GB HDD.
3rd Gen. Intel i5 2.6 ghz dual core.
Intel HD 4000 Graphics.
Reply With Quote
  #3  
Old 15th September 2011, 02:58 AM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,550
windows_xp_2003ie
Re: removing a kernel

Quote:
Originally Posted by simone89

I'm trying to run a software update and the message is to
remove The Linux Kernel

I can't get any updates without removing it first.
I hope you will return and explain the situation in more detail. I have never experienced what you described and would like to know more about it.

P.S.: Regarding removing a kernel, you can first list the installed kernels and then specify by version number the one you want to removed. That should work with either rpm or yum. It's what I do anyway. But for me, manually removing a kernel is a rare event.
Reply With Quote
  #4  
Old 15th September 2011, 07:59 PM
simone89 Offline
Registered User
 
Join Date: Sep 2009
Posts: 9
linuxfedorafirefox
Re: removing a kernel

I have automatic updates and one of the messages is to remove the kernel. It's not the main kernel that I use.

The message is:
>remove The Linux Kernel
>kernel-2.6.35.12-88.fc14 (i686)

Is it okay to remove it?
Reply With Quote
  #5  
Old 15th September 2011, 11:05 PM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,550
linuxfirefox
Re: removing a kernel

Okay thanks. I have never used automatic updates, so maybe that's why I have never heard of this. All of those package manager thingies in Fedora are front-ends for yum. By default, yum retains the two most recent old kernels (for a total of three counting the newest kernel). When the kernel has been updated enough times for you to have those three, subsequent kernel updates result in yum removing the oldest kernel to maintain the number of installed kernels at three (that number can be adjusted, BTW). That kernel version you mentioned is at least three or four versions old. All three of my installed kernels in Fedora 14 are newer than that one. So maybe that automatic update thingie is just confirming with you before it lets yum remove the oldest kernel. I use simply yum update once a week. Without the -y option, yum always stops to ask me if what it is about to do is okay, but it never makes a special effort regarding kernels. Maybe somebody else who uses automatic updates can confirm this or clear it up. Anyway, I would agree with that prompt and get on with the system update.
Reply With Quote
  #6  
Old 16th September 2011, 10:26 AM
marriedto51 Offline
Registered User
 
Join Date: Jul 2009
Location: England, UK
Posts: 914
linuxfirefox
Re: removing a kernel

I'd agree with stoat, and let the update remove the old kernel.

To answer your other question, the only reasons I know of for removing a kernel are: (1) to conserve disk space (the usual reason); and (2) because it didn't work
Reply With Quote
  #7  
Old 16th September 2011, 08:44 PM
lensman3 Offline
Registered User
 
Join Date: Dec 2009
Location: Centennial, Colorado USA
Posts: 128
windows_7chrome
Re: removing a kernel

I had to remove a kernel the other day. My /boot is about 100 meg and there wasn't enough room to install the latest (fc15). I had to go in an remove the oldest kernel, on boot file system, and the compiled module listing from /boot. I also checked the /boot/grub/menu.conf to see if the oldest was removed after the boot.

I then did yum update and reboot to get the latest kernel running.

This is MY FAULT. I have partitioned my disk so that /boot was only about 100 meg. I think about FC 10 (or so) /boot had to be about 300 megs in size. I have partitioned by main disk to have /boot, /, /usr, opt, /home, /tmp, swap and a /u1 partition ( /u1 is for user 1). This allows me on upgrades to not have to reformat /home, /opt, and /u1. Each new release has the "programs part" formatted and starts fresh. This doesn't fix the problem of configuration files that are old and out of date and don't get updated on install. My partitions were chosen for backup purposes back when I used "backup and restore".
Reply With Quote
Reply

Tags
kernel, removing

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
Removing a new kernel nigel_b Using Fedora 9 27th March 2008 01:42 PM
Removing old kernel StormChaser Using Fedora 1 24th November 2007 03:47 AM
updating kernel = removing old ones Clunixchit Programming & Packaging 7 16th January 2006 01:22 AM
Removing old kernel...? zacetnik Using Fedora 12 6th July 2005 12:06 PM


Current GMT-time: 22:19 (Sunday, 23-11-2014)

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
Palm Coast - Campobasso - Iringa Photos on Instagram