2

Possible Duplicate:
I get two kernel updates, one for Generic and one for Generic-PAE

I am using Ubuntu 12.04 . I don't want to use PAE kernels so i am using normal kernels . but update manager giving me updates regarding PAE kernels and i dont want them .

So can i stop update manager about listing the updates regarding PAE Kernels .

Thank you .

2
  • 3
    If you remove existing PAE kernels it won't want to update them any more.... as you sow, so shall you reap, fortune favors the brave, etc. etc. :P
    – ish
    Jun 29, 2012 at 16:24
  • @izx small correction to your comment . convert it to answer by adding extra text as " select to remove listed pae kernel in update manager from synaptic manager " bottom line is : " have to remove all existed PAE kernels and then upcoming PAE kernel which was listed in update manager " Thank you .
    – Raja G
    Jun 29, 2012 at 16:49

1 Answer 1

3

Why not remove the PAE kernels along with their headers? You don't use them anyway, and that will both solve the updates problem and free some space. To do that, use the following:

  1. This command will only show what's to be removed, without removing anything.

    dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get --dry-run remove
    
  2. This command will purge all unused kernels and headers.

    dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get -y purge
    

Info source

Edit: Apparently, that command doesn't remove the metapackages, so I'd add the follwoing as well:

sudo apt-get purge linux-generic-pae linux-image-generic-pae linux-headers-generic-pae
1
  • Hi your solution helped with removing of old/unused kernels , that we could do from Synaptic also .Thank you .great command .
    – Raja G
    Jun 29, 2012 at 16:45

Not the answer you're looking for? Browse other questions tagged .