删除python_games目录
rm -rf python_games
清除桌面,浏览器,python等…
sudo apt-get purge x11-common midori lxde lxde-common lxde-core lxde-icon-theme lxinput lxpanel lxpolkit lxrandr lxsession-edit lxshortcut lxtask lxterminal xinit xserver-xorg xserver-xorg-video-fbdev desktop-base desktop-file-utils gnome-icon-theme gnome-themes-standard leafpad menu-xdg scratch xarchiver zenity leafpad dillo netsurf python3 python3-minimal
删除opt目录下的示范代码
sudo rm -rf opt
清除python…
sudo apt-get purge `sudo dpkg --get-selections | grep -v "deinstall" | grep python | sed s/install//`
清除剩余的x11组件
sudo apt-get purge `sudo dpkg --get-selections | grep -v "deinstall" | grep x11 | sed s/install//`
清除音频组件
sudo apt-get purge `sudo dpkg --get-selections | grep -v "deinstall" | grep sound | sed s/install//`
清除build-essential库
sudo apt-get purge gcc-4.4-base:armhf gcc-4.5-base:armhf gcc-4.6-base:armhf
删除不需要的键盘支持字体等…
sudo apt-get purge ca-certificates libraspberrypi-doc xkb-data fonts-freefont-ttf locales manpages
执行清理
sudo apt-get autoremove
sudo apt-get clean
删除所有日志
cd /var/log/
sudo rm `find . -type f`
Copyright © 2018-07-28 XIAOZHUO.WANG™
网友评论