Remove Unneeded Linux Kernels in Ubuntu


/ Published in: Bash
Save to your folder(s)

Remove Unneeded Linux Kernels in Ubuntu


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.