ubuntu清理旧内核

最近升级ubuntu的时候,说boot分区太小了,被要求free space,于是就google了下清理了旧内核,原来每次更新都会保留旧版本的内核以保证硬件兼容性,所以boot分区里面不知不觉装了好多旧内核。

采取以下方式清除旧内核:

$uname -a #查看当前使用的内核

$dpkg --get-selections | grep linux #查看已安装的内核,linux-image开头的是内核

$sudo apt-get remove linux-image-X.X.X-XX-*

$sudo update-grub2 #更新grub2

posted @ 2013-09-02 23:29  rainy.mayday  阅读(189)  评论(0)    收藏  举报