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