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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM