If you setup your Raspberry Pi using the NOOBs installer you likely have various apps that you don’t want to keep.
This script below will remove many of the preinstalled applications.
- wolfram-engine
- bluej
- geany
- greenfoot
- nodered
- nuscratch
- scratch
- sonic-pi
- libreoffice
- claws-mail
- claws-mail-i18n
- minecraft-pi
- pygame
for i in wolfram-engine \ bluej \ Greenfoot \ nodered \ nuscratch \ scratch \ sonic-pi* \ libreoffice* \ claws-mail \ claws-mail-i18n \ minecraft-pi \ *pygame \ geany \ geany-common \ penguinspuzzle \ *pgzero; do sudo apt remove -y --purge $i done sudo apt autoremove -y sudo apt-get update && sudo apt-get upgrade -y sudo reboot
If you are running as a server you may also want to remove the user interface (Gnome)
sudo apt-get remove task-desktop -y sudo tasksel remove gnome-desktop sudo apt-get --purge autoremove -y
Originally Posted on July 19, 2017
Last Updated on March 26, 2019
Last Updated on March 26, 2019
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.