Results 1 to 3 of 3

Thread: Removing a custom compiled kernel?

  1. #1
    Join Date
    Jul 2008
    Location
    Stafford
    Beans
    260
    Distro
    Ubuntu Gnome

    Removing a custom compiled kernel?

    Hi there,

    I have recently compiled custom kernels for Ubuntu, they all aren't perfect so I want to remove them off my system, when I run this command:

    Code:
    dpkg -l | grep ^ii | grep 2.6.28-15 | awk -F' ' '{ print $2 }'
    I get the following results:

    Code:
    3.3.6-030306
    3.3.7core2duo
    3.3.7-core2duo
    3.3.7core2duo.old
    I want to remove all the 3.3.7* ones and keep the 3.3.6 one. Unfortunately, the 3.3.7 ones don't seem to get removed when I run "sudo apt-get remove linux-image-3.3.7*" nor are they listed in Synaptic. Ubuntu-tweak didn't help either since it can't find them. Neither did the "one-liner" command to remove other kernels apart from the one listed when using "uname -r".

    How do I go about removing this kernels manually?

    Regards

  2. #2
    dino99's Avatar
    dino99 is offline Ubuntu addict and loving it
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Removing a custom compiled kernel?

    you should find them inside /lib/modules/

    there, sudo rm -rf 3.3.7*
    Last edited by dino99; June 5th, 2012 at 01:58 PM.

  3. #3
    Join Date
    Jul 2008
    Location
    Stafford
    Beans
    260
    Distro
    Ubuntu Gnome

    Re: Removing a custom compiled kernel?

    Thanks!

    I have deleted the 3.3.7 related files in the /boot folder too. Ran "update-grub" and they are not in the menu entry.

    Is there anywhere else that I might have to delete 3.3.7 related folders & files?
    Last edited by ojdon; June 5th, 2012 at 03:17 PM.

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
  •