summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/98-remove_unwanted_packages
blob: eb1113c9efe0d0d72a38e9cd442b9d1498f71b18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh

set -e

echo "Removing unwanted packages"

### Deinstall dev packages.

# We use apt-get as aptitude doesn't know about globs.
# There are packages we could be tempted to remove but we can't:
#   - gcc-*-base (libstdc++6 depends on it)
#   - libgcc1 (vidalia depends on it)
#   - cpp, cpp-* (big parts of GNOME depend on it)
apt-get --yes purge  \
   '^linux-kbuild-*' \
   '^linux-headers-*' \
   build-essential debhelper dkms dpatch dpkg-dev \
   gcc gcc-4.8 gcc-4.8-base gcc-4.9 \
   intltool-debian \
   libc6-dev libgl1-mesa-dev libstdc++6-4.4-dev linux-libc-dev \
   make \
   module-assistant \
   po-debconf \
   rsyslog \
   libdvdcss-dev \
   equivs virtualbox-guest-dkms

### Deinstall a few unwanted packages that were pulled by tasksel
### since they have Priority: standard.
apt-get --yes purge  \
   apt-listchanges at bsd-mailx dc debian-faq doc-debian dselect \
   '^exim4*' ftp m4 mlocate mutt ncurses-term nfs-common portmap procmail python-apt \
   python-reportbug reportbug telnet texinfo time w3m wamerican

### Deinstall some other unwanted packages.
apt-get --yes purge  \
    '^aptitude*' \
    db5.1-util \
    '^geoclue*' \
    krb5-locales \
    live-build \
    locales \
    '^openssh-blacklist*' \
    python2.6 \
    python2.6-minimal \
    rpcbind \
    tasksel \
    tasksel-data \

### Deinstall dependencies of the just removed packages.
apt-get --yes --purge autoremove