Skip to content

Instantly share code, notes, and snippets.

@jpralves
Last active May 19, 2016 13:01
Show Gist options
  • Save jpralves/02649e4381bcbf79d5c1613e9c998864 to your computer and use it in GitHub Desktop.
Save jpralves/02649e4381bcbf79d5c1613e9c998864 to your computer and use it in GitHub Desktop.
Reduce raspbian Jessie image
cat <<EOF
if [ $(id -u) -ne 0 ]; then
printf "Script must be run as root\n"
exit 1
fi
EOF
### Packages:
pkgs="omxplayer
sonic-pi
smartsim penguinspuzzle
wolfram-engine
libreoffice-sdbc-hsqldb
minecraft-pi python-minecraftpi
claws-mail
scratch nuscratch
greenfoot bluej
nodered
geany
libreoffice libreoffice-gtk
debian-reference-en dillo x2x
timidity
"
# Remove packages
for i in $pkgs; do
echo apt -y remove --purge $i
done
# Remove automatically installed dependency packages
echo apt-get -y autoremove --purge
echo apt-get -y clean all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment