Skip to content

Instantly share code, notes, and snippets.

@cagmz
Forked from samatjain/Slim-Raspbian.sh
Last active November 11, 2016 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cagmz/edd85a276f3e3c175dc62ced7b875fb2 to your computer and use it in GitHub Desktop.
Save cagmz/edd85a276f3e3c175dc62ced7b875fb2 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Edu-related packages
pkgs="$pkgs
debian-reference-en dillo x2x
scratch nuscratch
timidity
smartsim penguinspuzzle
pistore
sonic-pi
oracle-java8-jdk
minecraft-pi python-minecraftpi
wolfram-engine
"
# Because of of https://github.com/RPi-Distro/raspberrypi-ui-mods/issues/2 (thanks @robertely)
echo apt-get -y remove raspberrypi-ui-mods
# Remove packages
for i in $pkgs; do
echo apt-get -y remove --purge $i
done
# Remove automatically installed dependency packages
echo apt-get -y autoremove
# Remove all packages marked rc (thanks @symm)
dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs dpkg --purge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment