Free up 1.5 GB on your Raspberry Pi

Quick way to get rid of 1.5GB of trash on your Raspberry Pi running Raspbian:

 


$ sudo apt-get remove -y wolfram-engine scratch minecraft-pi sonic-pi \

dillo gpicview penguinspuzzle oracle-java8-jdk openjdk-7-jre \

oracle-java7-jdk openjdk-8-jre libreoffice* chromium-browser

$ sudo apt-get clean

$ sudo apt-get autoremove

 

That’s it! (assuming you don’t need those packages)

I had 3.8GB used space, now at 2.3GB.  Need to know what’s taking up disk space? Try:


$ dpkg-query -Wf ‘${Installed-Size}\t${Package}\t${Priority}\n’ | egrep ‘\s(optional|extra)’ | cut -f 1,2 | sort -nr | less</div>


WordPress might mess up the code by swapping straight quotes with curly quotes.

Leave a Reply

Your email address will not be published. Required fields are marked *