Instantly share code, notes, and snippets.

What would you like to do?
Set of commands to strip down the default Raspbian installation as of 20 September 2014
rm -rf python_games
rm -rf Desktop

sudo apt-get --auto-remove --purge remove aptitude aptitude-common aspell aspell-en cifs-utils dbus dbus-x11 dconf-gsettings-backend:armhf dconf-service debconf-i18n debian-reference-common debian-reference-en desktop-base desktop-file-utils dictionaries-common dillo esound-common ed fbset firmware-atheros firmware-brcm80211 firmware-libertas firmware-ralink firmware-realtek fontconfig fontconfig-config fonts-droid fonts-freefont-ttf galculator gconf-service gconf2 gconf2-common gdb gdbserver gettext-base ghostscript gir1.2-glib-2.0 glib-networking:armhf glib-networking-common glib-networking-services gnome-icon-theme gnome-themes-standard-data gpicview groff-base gsettings-desktop-schemas gsfonts gsfonts-x11 gtk2-engines:armhf gvfs:armhf gvfs-backends gvfs-common gvfs-daemons gvfs-fuse gvfs-libs:armhf hicolor-icon-theme idle idle-python2.7 idle-python3.2 idle3 jackd jackd2 java-common krb5-locales leafpad lightdm lightdm-gtk-greeter lua5.1 luajit lxappearance lxde lxde-common lxde-core lxde-icon-theme lxinput lxmenu-data lxpanel lxpolkit lxrandr lxsession lxsession-edit lxshortcut lxtask lxterminal midori netsurf-common netsurf-gtk omxplayer openbox oracle-java8-jdk pcmanfm penguinspuzzle plymouth pistore qdbus qjackctl raspberrypi-artwork ruby1.9.1 samba-common scratch smartsim sonic-pi squeak-plugins-scratch squeak-vm supercollider supercollider-common supercollider-server timidity tsconf ttf-dejavu-core udisks usbmuxd v4l-utils weston wolfram-engine wpagui x11-common x11-utils x11-xkb-utils x2x xarchiver xauth xdg-utils xfonts-encodings xfonts-utils xinit xkb-data xml-core xpdf xserver-common xserver-xorg xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-evdev xserver-xorg-input-synaptics xserver-xorg-video-fbdev xserver-xorg-video-fbturbo zenity zenity-common raspi-config python python3 python3-minimal python-rpi.gpio
sudo apt-get remove `sudo dpkg --get-selections | grep -v "deinstall" | grep x11 | sed s/install//`

sudo apt-get install deborphan
sudo apt-get --purge remove `deborphan | tr "\n" " "`

sudo apt-get --purge remove libept-dev libnih1 libopts25 libraspberrypi-doc libtagcoll2-dev libwibble-dev ntp

sudo apt-get install localepurge
localepurge # To set the locales to keep

sudo apt-get update
sudo apt-get upgrade

sudo apt-get autoremove
sudo apt-get clean


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment