98-remove_unwanted_packages 1.67 KB
Newer Older
1 2
#!/bin/sh

3 4
set -e

5 6 7 8 9 10 11
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-4.4-base (libstdc++6 depends on it)
12 13
#   - libgcc1 (vidalia depends on it)
#   - cpp, cpp-4.4 (big parts of GNOME depend on it)
14
apt-get --yes purge  \
15 16
   '^linux-kbuild-*' \
   '^linux-headers-*' \
17
   build-essential debhelper dkms dpatch dpkg-dev \
18
   cpp-4.3 \
19
   gcc gcc-4.3 gcc-4.3-base gcc-4.4 \
20
   g++ '^g\+\+-*' \
21
   intltool-debian \
22
   libc6-dev libgl1-mesa-dev libstdc++6-4.4-dev linux-libc-dev \
23 24 25
   make \
   module-assistant \
   po-debconf \
26
   virtualbox-guest-dkms
27

28 29 30 31 32 33 34
### 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 doc-linux-text \
   '^exim4*' ftp m4 mlocate ncurses-term nfs-common portmap procmail python-apt \
   python-reportbug reportbug telnet texinfo time w3m wamerican

35
### Deinstall some other unwanted packages.
36
apt-get --yes purge  \
37
   aptitude live-build locales tasksel tasksel-data
38 39

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

42
### Deinstall gnome-core and some of its new dependencies.
43

44
# We do this last as we don't want apt-get autoremove to deinstall all
45
# gnome-core dependencies.
46 47

# - gnome-core itself
48
apt-get --yes purge gnome-core
49 50

# - evolution and its dependencies
51
apt-get --yes purge \
52 53 54 55
   evolution evolution-common libevolution \
   libgtkhtml-editor-common libgtkhtml-editor0 libgtkhtml3.14-19

# - others
56
apt-get --yes purge \
Tails developers's avatar
Tails developers committed
57
   gnome-screensaver \
58
   gnome-user-guide