Find the answer to your Linux question:
Results 1 to 10 of 10
Hi, I am using f 12. Every time I update software, a new tab appears in the boot menu screen to access both previous and new kernels. I thinks this ...
  1. #1
    Linux Newbie Tom Varghese's Avatar
    Join Date
    Apr 2008
    Posts
    101

    [SOLVED] Software Update

    Hi,
    I am using f 12. Every time I update software, a new tab appears in the boot menu screen to access both previous and new kernels. I thinks this will be a problem after 10 or more updates. Can I remove older kernel versions in order to save hard disk? I think dumping of all versions of kernel eat my hard disk.

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,939
    The kernel itself doesn't take up much space. Go to your boot directory and right click on a kernel and click properties to see how big it is. It does get cumbersome and makes for a messy boot menu. I'd suggest setting your most recent kernel as the default, boot it to make sure everything works before deleting old kernels. Usually you are asked if you want to update the kernel when doing an update and there is not reason to if everything is working, just say no. I don't use Fedora so I'm not sure if it gives you the option.

  3. #3
    oz
    oz is online now
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,096
    Quote Originally Posted by Tom Varghese View Post
    Can I remove older kernel versions in order to save hard disk?
    Yes, you can remove any kernel versions that you no longer need or want. They only stay on the system after kernel upgrades in case the new kernel doesn't work properly.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  4. #4
    Linux Newbie Tom Varghese's Avatar
    Join Date
    Apr 2008
    Posts
    101
    Quote Originally Posted by yancek View Post
    I'd suggest setting your most recent kernel as the default, boot it to make sure everything works before deleting old kernels.
    But How to set one as default?

    Quote Originally Posted by ozar View Post
    Yes, you can remove any kernel versions that you no longer need or want. They only stay on the system after kernel upgrades in case the new kernel doesn't work properly.
    How to delete others?

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Execute this
    Code:
    su -
    rpm -q kernel
    It will display a list of installed kernels. Note down complete name of earlier version and execute this to un-install it
    Code:
    rpm -e kernel-<version>
    Make sure to un-install earlier version only.

    You have to set default value for latest kernel in /boot/grub/grub.conf file.
    Post the contents of grub.conf file after uninstalling earlier kernel(s).
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,939
    Set the default by going to the /boot/grub/grub.conf file and counting from the top the title lines. Put the number of the one you want to boot next to the "default" at the top of the page. Grub counts from zero. Obviously do this after removing any kernels you don't want.

  7. #7
    oz
    oz is online now
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,096

    GRUB HowTos

    If you aren't familiar with the inner workings of GRUB, you can find a couple of really good tutorials here:

    GRUB bootloader - Full tutorial

    GRUB 2 bootloader - Full tutorial

    Both are probably the best guides that I've seen on GRUB.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  8. #8
    Linux Newbie Tom Varghese's Avatar
    Join Date
    Apr 2008
    Posts
    101
    Thank you all. In case I am not intended to uninstall the kernel, and want to display only the latest one on the boot menu, what do i need to do? Just editing th grub.conf is ok?

  9. #9
    oz
    oz is online now
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,096
    Quote Originally Posted by Tom Varghese View Post
    In case I am not intended to unistall kernel, and want to display only the latest one on the boot menu, what do i need to do? Just editing th boot.conf is ok?
    Yes, you just edit out (or comment out) any lines related to kernel entries that you don't want from the /boot/grub/grub.conf file.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  10. #10
    Linux Newbie Tom Varghese's Avatar
    Join Date
    Apr 2008
    Posts
    101
    Done.Thanks who helped me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...