ubuntu16.04系统精简

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
posted @ 2017-12-18 13:39  Eamon13  阅读(3701)  评论(0编辑  收藏  举报