Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Remove old kernel(s) via command line?

  1. #1
    Join Date
    Jul 2008
    Location
    New York
    Beans
    820
    Distro
    Ubuntu Development Release

    Question Remove old kernel(s) via command line?

    Hi!

    My server has lots of older kernels on it. If I have already booted up the latest kernel, is there a way to delete the old ones with the command line? (no GUI)

    Thanks in advance!
    If it jams, force it. If it breaks, it needed replacing anyway. . .
    I like Unity.

  2. #2
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Remove old kernel(s) via command line?

    sudo apt-get remove <kernel>
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  3. #3
    Join Date
    Jul 2008
    Location
    New York
    Beans
    820
    Distro
    Ubuntu Development Release

    Re: Remove old kernel(s) via command line?

    Thanks! That was easier than I expected.
    If it jams, force it. If it breaks, it needed replacing anyway. . .
    I like Unity.

  4. #4
    Join Date
    Jun 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Remove old kernel(s) via command line?

    Link: Help Vampires? * * * Please Edit First Post Title With "[SOLVED]" When It Is!
    MANDATORY INFORMATION: make, model/build number, OSes, software, accessories
    /customizations/modifications/peripherals/etc...and a DETAILED account of difficulties!

  5. #5
    Join Date
    Jul 2008
    Location
    New York
    Beans
    820
    Distro
    Ubuntu Development Release

    Re: Remove old kernel(s) via command line?

    OK, now I am being told that I may have to re-run my bootloader [grub]. How might I go about this?

    Thanks in advance!
    If it jams, force it. If it breaks, it needed replacing anyway. . .
    I like Unity.

  6. #6
    Join Date
    Jun 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Remove old kernel(s) via command line?

    Quote Originally Posted by pi.boy.travis View Post
    OK, now I am being told that I may have to re-run my bootloader [grub]. How might I go about this?

    Thanks in advance!
    are you using grub?

    on a server?

    multi-boot?

    .
    Link: Help Vampires? * * * Please Edit First Post Title With "[SOLVED]" When It Is!
    MANDATORY INFORMATION: make, model/build number, OSes, software, accessories
    /customizations/modifications/peripherals/etc...and a DETAILED account of difficulties!

  7. #7
    Join Date
    Jul 2008
    Location
    New York
    Beans
    820
    Distro
    Ubuntu Development Release

    Re: Remove old kernel(s) via command line?

    I'm using grub (v1.5, I think), and Ubuntu is the only OS.
    If it jams, force it. If it breaks, it needed replacing anyway. . .
    I like Unity.

  8. #8
    Join Date
    Jun 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Remove old kernel(s) via command line?

    Quote Originally Posted by pi.boy.travis View Post
    I'm using grub (v1.5, I think), and Ubuntu is the only OS.
    grub shouldn't be necessary if Ubuntu is the only OS...

    strange...

    .
    Link: Help Vampires? * * * Please Edit First Post Title With "[SOLVED]" When It Is!
    MANDATORY INFORMATION: make, model/build number, OSes, software, accessories
    /customizations/modifications/peripherals/etc...and a DETAILED account of difficulties!

  9. #9
    Join Date
    Jul 2008
    Location
    New York
    Beans
    820
    Distro
    Ubuntu Development Release

    Re: Remove old kernel(s) via command line?

    Ubuntu is the only OS, but something still has to load the kernel and initramfs, correct?
    Last edited by pi.boy.travis; July 14th, 2009 at 07:02 PM. Reason: TYPO
    If it jams, force it. If it breaks, it needed replacing anyway. . .
    I like Unity.

  10. #10
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Remove old kernel(s) via command line?

    Quote Originally Posted by LewRockwell View Post
    grub shouldn't be necessary if Ubuntu is the only OS...

    strange...

    .
    Bootloader is always necessary, not just for dualbooting. You need something to load the OS kernel into RAM to boot the OS, the only difference between Grub and for example NTLDR or winload.exe/Windows Boot Manager (used by Windows, NTLDR in Windows NT variants and WMB in Vista) is that Grub has better support for booting other operating systems than just the one it was made for.
    Last edited by mcduck; July 14th, 2009 at 08:17 PM.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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