Posted By

oxnard on 05/05/13


Tagged

linux ubuntu apt Kernels


Versions (?)

Remove Unneeded Linux Kernels in Ubuntu


 / Published in: Bash
 

Remove Unneeded Linux Kernels in Ubuntu

  1. uname -r
  2.  
  3. ls /boot | grep vmlinuz | cut -d'-' -f2,3
  4.  
  5. dpkg -l | grep ^ii | grep 2.6.28-15 | awk -F' ' '{ print $2 }'
  6.  
  7. sudo aptitude remove linux-headers-2.6.28-15 linux-headers-2.6.28-15-generic linux-image-2.6.28-15-generic linux-restricted-modules-2.6.28-15-generic

Report this snippet  

You need to login to post a comment.