Commit 61e4c154 authored by T(A)ILS developers's avatar T(A)ILS developers
Browse files

Starting to rework unwanted packages removal.

- use new "apt-get purge" instead of "apt-get --purge remove"
- deinstall gnome-core and some of its dependencies in a way that does not break
  APT sanity.
parent 2933b2fa
......@@ -7,7 +7,7 @@ echo "Removing unwanted 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)
apt-get --purge remove --yes \
apt-get --yes purge \
'linux-kbuild-*' \
'linux-headers-*' \
build-essential debhelper dkms dpatch dpkg-dev \
......@@ -23,26 +23,29 @@ apt-get --purge remove --yes \
virtualbox-ose-guest-dkms
### Deinstall some other unwanted packages.
apt-get --purge remove --yes \
apt-get --yes purge \
tasksel tasksel-data
### Deinstall dependencies of the just removed packages.
apt-get --purge autoremove --yes
apt-get --purge --yes autoremove
### Force purging some new dependencies of gnome-core.
### Deinstall gnome-core and some of its new dependencies.
# We'll do this last as we now forcibly break APT state using
# low-level dpkg commands.
# We do this last as we don't want apt-get autoremove to deinstall all
# gnome-core dependencies.
# - gnome-core itself
apt-get --purge remove gnome-core
# - evolution and its dependencies
dpkg --purge --force-depends \
apt-get --yet purge \
evolution evolution-common libevolution \
libgtkhtml-editor-common libgtkhtml-editor0 libgtkhtml3.14-19
# - gvfs-backends and its dependencies
dpkg --purge --force-depends \
apt-get --yet purge \
gvfs-backends libcdio-cdda0 libcdio-paranoia0 libsmbclient libwbclient0
# - others
dpkg --purge --force-depends \
apt-get --yet purge \
gnome-screensaver gnome-keyring gnome-user-guide
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment