Last active
May 19, 2016 13:01
-
-
Save jpralves/02649e4381bcbf79d5c1613e9c998864 to your computer and use it in GitHub Desktop.
Reduce raspbian Jessie image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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