Ubuntu下清理缓存与删除多余的旧版本内核

一.清理缓存常用命令:

1.清理所有软件缓存:

sudo apt-get clean

2.清理旧版本软件缓存:

sudo apt-get autoclean

3.清理系统不再使用孤立软件

sudo apt-get autoremove

二.删除多余内核命令:

1.查看当前系统使用的内核版本

uname -a

2.查看系统所有内核

dpkg --get-selections|grep linux

3.删除系统多余旧版本内核(需谨慎删除)

sudo apt-get remove 【内核名】

注例:内核号较小的一般都能删除

linux-headers-x.xx.x-xx

linux-headers-x.xx.x-xx-generic

linux-image-x.xx.x-xx-generic

猜你喜欢

转载自blog.csdn.net/weixin_42039699/article/details/81805506
今日推荐