Linux(Ubuntu) 删除不用内核 释放boot空间

------------恢复内容开始------------

1、查看已经安装的内核

 dpkg --get-selections | grep linux

 dpkg --list | grep linux-headers

dpkg --list | grep linux-image

 

 apt-get autoremove

 sudo apt-get purge linux-headers-4.2.0-12

 sudo apt-get purge linux-image-4.2.0-{11,14,16,17,18,19,21,22,23,25,27}

sudo apt-get purge linux-headers-4.2.0-{14,16}

end

 

```

sudo apt-get remove \
linux-headers-4.15.0-39 \
linux-headers-4.15.0-39-generic \
linux-image-4.15.0-39-generic \
linux-modules-4.15.0-39-generic \
linux-modules-extra-4.15.0-39-generic

```

------------恢复内容结束------------

posted @ 2021-03-05 16:07  戒骄戒躁-沉淀积蓄  阅读(168)  评论(0编辑  收藏  举报