Cruft on the Raspberry pi and how to clear it up

This is a simple list of cruft that can be safely removed from the astrobox on a raspberry pi. SSH in and do the following:

sudo apt-get --purge autoremove epiphany-browser epiphany-browser-data idle idle-python2.7 x2x idle-python3.2 idle3 leafpad minecraft-pi python-minecraftpi debian-reference-en dillo netsurf-common smartsim nuscratch netsurf-gtk poppler-data poppler-utils xpdf python3-pygame wolfram-engine sudo apt-get --purge autoremove sudo apt-get clean sudo rm -rf /home/pi/python_games sudo apt-get update sudo apt-get check
this should remove at least 0.75 gigs of cruft. Anyone that does this should let me know the actual amount of space cleared.

Many other things could be cleared on the raspberry pi, such as the entire desktop if you are so inclined. Daniel has stated there is an issue with the current wifi modules, so
DO NOT
sudo apt-get upgrade
at any time unless you know what you are doing, are aware of the possibility of broken wifi through the webserver, and know how to fix it.

This only applies to the Raspberry Pi. Also this makes the assumption that your username has remained unchanged and is still “pi”. If not, replace USERNAMEHERE with your username in the following line
rm -rf /home/USERNAMEHERE/python_games

2 Likes

Does this apply to the Raspberry Pi only? Or would this apply to the pcDuino as well?

Because this post must be 20 characters or more I am typing this.

Pi only.

2 Likes