Raspbian Jessie and Wheezy distribution includes Squeak and Scratch. While these can be helpful educational tools for students which provides a gentle introduction to programming, it doesn’t have much use for others. The following instructions will remove both Squeak and Scratch from your Raspberry Pi (Raspbian distribution). It saves 92.7 MB and 1.15 MB respectively in Jessie and another 10.2 MB with subsequent autoremove, so over 100 MB space saved.
root@puma:/home/pi# apt-get remove --purge scratch*
Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'nuscratch' for regex 'scratch*' Note, selecting 'squeak-plugins-scratch-dbg' for regex 'scratch*' Note, selecting 'squeak-plugins-scratch' for regex 'scratch*' Note, selecting 'python3-pifacedigital-scratch-handler' for regex 'scratch*' Note, selecting 'libdirectory-scratch-perl' for regex 'scratch*' Note, selecting 'libdirectory-scratch-structured-perl' for regex 'scratch*' Note, selecting 'scratch' for regex 'scratch*' Package 'libdirectory-scratch-perl' is not installed, so not removed Package 'libdirectory-scratch-structured-perl' is not installed, so not removed Package 'squeak-plugins-scratch-dbg' is not installed, so not removed The following packages were automatically installed and are no longer required: fonts-roboto gtk2-engines-clearlookspix liblightdm-gobject-1-0 libxfce4ui-1-0 libxfce4util-bin libxfce4util-common libxfce4util6 libxfconf-0-2 lightdm-gtk-greeter pimixer pipanel squeak-vm wiringpi xfce-keyboard-shortcuts xfconf Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: nuscratch* python3-pifacedigital-scratch-handler* scratch* squeak-plugins-scratch* 0 upgraded, 0 newly installed, 4 to remove and 1 not upgraded. After this operation, 92.7 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 136309 files and directories currently installed.) Removing nuscratch (20160115) ... Removing 'diversion of /usr/bin/scratch to /usr/bin/scratch.old by nuscratch' Removing 'diversion of /usr/bin/squeak to /usr/bin/squeak.old by nuscratch' Removing 'diversion of /usr/share/scratch/locale/ja_HIRA.po to /usr/share/scratch/locale/ja_HIRA.po.old by nuscratch' Removing 'diversion of /usr/share/scratch/locale/ja.po to /usr/share/scratch/locale/ja.po.old by nuscratch' Purging configuration files for nuscratch (20160115) ... Removing python3-pifacedigital-scratch-handler (2.0.5-1) ... Purging configuration files for python3-pifacedigital-scratch-handler (2.0.5-1) ... Removing scratch (1.4.0.6~dfsg1-5) ... Purging configuration files for scratch (1.4.0.6~dfsg1-5) ... Removing squeak-plugins-scratch (1.4.0.2~svn.r83-2) ... Processing triggers for hicolor-icon-theme (0.13-1) ... Processing triggers for man-db (2.7.0.2-5) ... Processing triggers for gnome-menus (3.13.3-6) ... Processing triggers for desktop-file-utils (0.22-1) ... Processing triggers for mime-support (3.58) ... Processing triggers for shared-mime-info (1.3-1) ...
root@puma:/home/pi# apt-get remove --purge squeak*
Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'squeak-plugins-scratch-dbg' for regex 'squeak*' Note, selecting 'squeak-vm' for regex 'squeak*'Mathematica Note, selecting 'squeak-plugins-scratch' for regex 'squeak*' Package 'squeak-plugins-scratch' is not installed, so not removed Package 'squeak-plugins-scratch-dbg' is not iAfter this operation, 1,151 kB disk space will be freed.nstalled, so not removed The following packages were automatically installed and are no longer required:And fonts-roboto gtk2-engines-clearlookspix liblightdm-gobject-1-0 libxfce4ui-1-0 libxfce4util-bin libxfce4util-common libxfce4util6 libxfconf-0-2 lightdm-gtk-greeter pimixer pipanel wiringpi xfce-keyboard-shortcuts xfconf Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: squeak-vm* 0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded. After this operation, 1,151 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 135057 files and directories currently installed.) Removing squeak-vm (1:4.10.2.2614-1.1+b1) ... Processing triggers for shared-mime-info (1.3-1) ... Processing triggers for gnome-menus (3.13.3-6) ... Processing triggers for desktop-file-utils (0.22-1) ... Processing triggers for mime-support (3.58) ... Processing triggers for gnome-icon-theme (3.12.0-1) ... Processing triggers for man-db (2.7.0.2-5) ...
Don’t forget to run clean and autoremove:
apt-get clean