summaryrefslogtreecommitdiff
path: root/data/live-build-config/hooks/22-cleanup-packages.chroot
blob: db1a6bfb228170eb56ddf579a4c981fc0729ea1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# Clean up packages that were installed for dependencies but are no longer needed
# and packages installed by metapackages that we'll never need

UNWANTED_PKGS="dahdi-firmware-nonfree \
               firmware-crystalhd firmware-ivtv \
               firmware-samsung"

for p in $UNWANTED_PKGS; do
  apt-get -y remove $p
done

apt-get -y autoremove