ubuntu16.04系统精简
一、更新系统
apt-get update
apt-get dist-upgrade
二、查看所有内核
sudo dpkg --get-selections |grep linux
三、清除不用的内核
apt-get purge linux-image-extra-x.x.x-x-generic
linux-image-x.x.x-x-generic
linux-headers-x.x.x-x
linux-headers-x.x.x-x-generic
四、删除无用的软件
apt-get purge mdadm
git
acpid
vim*
ubuntu-cloudimage-keyring
ubuntu-core-launcher
software-properties-common
lxc*
lxd*
perl
apt-get autoremove
五、清理文件
apt-get clean all