Add problematic laptop
[tails-test.git] / config / chroot_local-hooks / 98-remove_unwanted_packages
blob76ba6649115e4db4d38ba57b5625ff2680b387f1
1 #!/bin/sh
3 set -e
5 echo "Removing unwanted packages"
7 ### Deinstall dev packages.
9 # We use apt-get as aptitude doesn't know about globs.
10 # There are packages we could be tempted to remove but we can't:
11 # - gcc-4.7-base (libstdc++6 depends on it)
12 # - libgcc1 (vidalia depends on it)
13 # - cpp, cpp-4.4 (big parts of GNOME depend on it)
14 apt-get --yes purge \
15 '^linux-kbuild-*' \
16 '^linux-headers-*' \
17 build-essential debhelper dkms dpatch dpkg-dev \
18 gcc gcc-4.7 gcc-4.8 \
19 intltool-debian \
20 libc6-dev libgl1-mesa-dev libstdc++6-4.4-dev linux-libc-dev \
21 make \
22 module-assistant \
23 po-debconf \
24 equivs virtualbox-guest-dkms
26 ### Deinstall a few unwanted packages that were pulled by tasksel
27 ### since they have Priority: standard.
28 apt-get --yes purge \
29 apt-listchanges at bsd-mailx dc debian-faq doc-debian dselect \
30 '^exim4*' ftp m4 mlocate ncurses-term nfs-common portmap procmail python-apt \
31 python-reportbug reportbug telnet texinfo time w3m wamerican
33 ### Deinstall some other unwanted packages.
34 apt-get --yes purge \
35 '^aptitude*' \
36 db5.1-util \
37 krb5-locales \
38 live-build \
39 locales \
40 '^openssh-blacklist*' \
41 python2.6 \
42 python2.6-minimal \
43 rpcbind \
44 tasksel \
45 tasksel-data \
47 ### Deinstall dependencies of the just removed packages.
48 apt-get --yes --purge autoremove