98-remove_unwanted_packages 1.66 KB
Newer Older
1
2
3
4
5
6
7
8
9
#!/bin/sh

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

26
27
28
29
30
31
32
### 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

33
### Deinstall some other unwanted packages.
34
apt-get --yes purge  \
35
   live-build tasksel tasksel-data
36
37

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

40
### Deinstall gnome-core and some of its new dependencies.
41

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

# - gnome-core itself
46
apt-get --yes purge gnome-core
47
48

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

# - others
54
apt-get --yes purge \
55
   gnome-screensaver gnome-keyring \
56
   gnome-user-guide