98-remove_unwanted_packages 1.38 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
apt-get --yes purge  \
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
   'linux-kbuild-*' \
   'linux-headers-*' \
   build-essential debhelper dkms dpatch dpkg-dev \
   cpp 'cpp-*' \
   gcc gcc-4.3 gcc-4.3-base gcc-4.4 \
   g++ 'g++-*' \
   intltool-debian \
   libgcc1 \
   libc6-dev libgl1-mesa-dev libgudev-1.0-0 libstdc++6-4.4-dev linux-libc-dev \
   make \
   module-assistant \
   po-debconf \
   virtualbox-ose-guest-dkms

### Deinstall some other unwanted packages.
26
apt-get --yes purge  \
27
28
29
   tasksel tasksel-data

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

32
### Deinstall gnome-core and some of its new dependencies.
33

34
35
36
37
# We do this last as we don't want apt-get autoremove to deinstall all
# gnome-core dependencies.

# - gnome-core itself
38
apt-get --yes purge gnome-core
39
40

# - evolution and its dependencies
41
apt-get --yes purge \
42
43
44
45
   evolution evolution-common libevolution \
   libgtkhtml-editor-common libgtkhtml-editor0 libgtkhtml3.14-19

# - gvfs-backends and its dependencies
46
apt-get --yes purge \
47
48
49
   gvfs-backends libcdio-cdda0 libcdio-paranoia0 libsmbclient libwbclient0

# - others
50
apt-get --yes purge \
51
   gnome-screensaver gnome-keyring gnome-user-guide