summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/98-remove_unwanted_packages
blob: 39b4e55086bbd264a3c990ff599da6182b7cd39e (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/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 (apt depends on it)
#   - cpp, cpp-* (big parts of GNOME depend on it)
apt-get --yes purge  \
   '^linux-kbuild-*' \
   '^linux-headers-*' \
   '^linux-source-*' \
   build-essential debhelper dkms dpatch dpkg-dev \
   gcc gcc-4.8 gcc-4.9 gcc-5 gcc-5-base gcc-6 \
   intltool-debian \
   libc6-dev libgl1-mesa-dev linux-libc-dev \
   make \
   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 \
   '^exim4*' \
   ftp \
   m4 \
   mlocate \
   mutt \
   ncurses-term \
   nfs-common \
   portmap \
   procmail \
   python-reportbug \
   reportbug \
   telnet \
   texinfo \
   time \
   w3m \
   wamerican

### Deinstall some other unwanted packages.
apt-get --yes purge  \
    '^aptitude*' \
    '^geoclue*' \
    krb5-locales \
    libdvdcss2-dbgsym \
    live-build \
    locales \
    paxctld \
    rpcbind \
    tasksel \
    tasksel-data \

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