Wednesday, June 22, 2016

Linux kernel related procedures

How to list all installed linux kernels:

    dpkg --list | grep linux-image

How to install linux kernel 3.19

   
    apt-get install linux-image-generic-lts-vivid linux-headers-generic-lts-vivid
 
How to remove older kernels
 
    dpkg -l | tail -n +6 | grep -E 'linux-image-[0-9]+' | grep -Fv $(uname -r)
 
    then use the output from the above command:
 
    sudo dpkg --purge <<linux-image-4.2.0-15-generic>> 

No comments:

Post a Comment