蓝色艺林

导航

Ubuntu 垃圾清理与内核清理

Ubuntu 垃圾清理可以依次采用如下命令

sudo apt-get clean
sudo apt-get autoremove
sudo apt-get autoclean

Ubuntu 内核清理流程

1. 查看所有内核

dpkg --get-selections | grep linux

2. 查看当前内核

uname -a

3. 清理老内核

sudo apt-get remove linux-headers--*** linux-image--*** 

4. 更新内核列表grub

sudo update-grub

5. 清除内核列表deinstall选项

a. 查看所有内核

dpkg --get-selections | grep linux

b. 清除deinstall内核

 dpkg -P linux-image-***

posted on 2017-05-03 22:20  蓝色艺林  阅读(306)  评论(0编辑  收藏  举报