在Ubuntu中删除旧的内核linux kernel

参考此篇How to Remove the old (or new) Kernels

http://ubuntuhandbook.org/index.php/2015/08/install-latest-kernel-script/

1.在拥有图形界面的ubuntu里:

1.1 在Ubuntu Software Center里安装Synaptic Package Manager

1.2 使用Synaptic Package Manager进行包的删除:

  • click the Reload button in case you want to remove the new kernel.
  • select Status -> Installed on the left pane to make search list clear.
  • search linux-image- using Quick filter box.
  • select a kernel image “linux-image-x.xx.xx-generic” and mark for (complete) removal
  • finally apply changes

2.在ubuntu server环境下:

2.1 uname -r  获得当前kernel版本

2.2 dpkg -l | grep linux-image-    
    dpkg -l | grep linux-headers-   获得当前安装的包的名称
2.3 sudo apt-get autoremove KERNEL_IMAGE_NAME  将KERNEL_IMAGE_NAME替换为第二步中获得的名称即可进行删除。

注意不要删除掉需要保留的kernel。

 

 

posted @ 2015-12-07 00:28  乌鸦在飞  阅读(606)  评论(0编辑  收藏  举报