-
-
Save InfinityCliff/8706e9a2a6eab4df2e745d46b66a2378 to your computer and use it in GitHub Desktop.
Slim down an existing Raspbian install. See https://blog.samat.org/2015/02/05/slimming-an-existing-raspbian-install/
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
#!/bin/bash | |
# GUI-related packages | |
pkgs=" | |
" | |
# Other packages | |
pkgs="$pkgs | |
debian-reference-en dillo x2x | |
scratch nuscratch | |
timidity | |
smartsim penguinspuzzle | |
sonic-pi | |
oracle-java8-jdk | |
minecraft-pi python-minecraftpi | |
wolfram-engine | |
libreoffice* | |
galculator | |
gpicview | |
xarchiver | |
" | |
# 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