Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Script to remove bloatware from a fresh Raspbian Jessie install
#!/bin/bash
##############################################################################
#
# Filename: slim-raspbian.sh
# Description: Script to remove bloatware from fresh Raspbian Jessie install
# Source: https://github.com/hyper3xpl0iter/helper_scripts.git
# Author: Andre Mattie
# Email: devel@th3c1inic.org
# GPG: B9C0 3976 3CB4 794E D66C 8F75 8AA0 8470 3533 2EDD
# Date: 07/29/2016
#
##############################################################################
### NOTE ###
# to run script run $ sudo chmod +x slim-raspbian.sh
# then run $ sh ./slim-raspbian.sh | sudo sh
# GUI-related packages
pkgs="
epiphany-browser
xpdf
weston
omxplayer
qt50-snapshot qt50-quick-particle-examples
"
# Education packages
pkgs="$pkgs
idle python3-pygame python-pygame python-tk
idle3 python3-tk
python3-rpi.gpio
python-serial python3-serial
python-picamera python3-picamera
python3-pygame python-pygame python-tk
python3-tk
debian-reference-en dillo x2x
scratch nuscratch
timidity
smartsim penguinspuzzle
pistore
sonic-pi
python3-numpy
python3-pifacecommon python3-pifacedigitalio python3-pifacedigital-scratch-handler python-pifacecommon python-pifacedigitalio
oracle-java8-jdk
minecraft-pi python-minecraftpi
wolfram-engine
"
# Remove packages that are listed above
for i in $pkgs; do
echo apt-get -y remove --purge $i
done
# Remove all installed dependency packages
echo apt-get -y autoremove
# Remove packages marked "rc"
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