98-remove_unwanted_packages 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #!/bin/sh
  2. set -e
  3. echo "Removing unwanted packages"
  4. ### Deinstall dev packages.
  5. # We use apt-get as aptitude doesn't know about globs.
  6. # There are packages we could be tempted to remove but we can't:
  7. # - gcc-*-base (libstdc++6 depends on it)
  8. # - libgcc1 (apt depends on it)
  9. # - cpp, cpp-* (big parts of GNOME depend on it)
  10. apt-get --yes purge \
  11. '^linux-kbuild-*' \
  12. '^linux-headers-*' \
  13. '^linux-headers-*:amd64' \
  14. '^linux-source-*' \
  15. build-essential debhelper dkms dpkg-dev \
  16. gcc gcc-4.8 gcc-4.8-base gcc-4.9 \
  17. intltool-debian \
  18. libc6-dev libgl1-mesa-dev linux-libc-dev \
  19. make \
  20. po-debconf \
  21. rsyslog \
  22. libdvdcss-dev \
  23. equivs virtualbox-guest-dkms
  24. ### Deinstall a few unwanted packages that were pulled by tasksel
  25. ### since they have Priority: standard.
  26. apt-get --yes purge \
  27. apt-listchanges at bsd-mailx dc debian-faq doc-debian \
  28. '^exim4*' ftp m4 mlocate mutt ncurses-term nfs-common portmap procmail \
  29. python-reportbug reportbug telnet texinfo time w3m wamerican
  30. ### Deinstall some other unwanted packages.
  31. apt-get --yes purge \
  32. '^aptitude*' \
  33. '^geoclue*' \
  34. krb5-locales \
  35. live-build \
  36. locales \
  37. rpcbind \
  38. tasksel \
  39. tasksel-data \
  40. ### Deinstall dependencies of the just removed packages.
  41. apt-get --yes --purge autoremove