2 # Filename: /etc/grml/fai/grml/grml_cleanup_chroot.deborphan
3 # Purpose: drop as many packages from grml as possible
4 # Authors: (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2.
7 ################################################################################
9 # remove all packages not necessary anymore:
10 apt-get -y --purge autoremove
12 # remove packages until deborphan does not find anymore:
13 while [ "$(deborphan)" != "" ] ; do
14 apt-get -y --purge remove $(deborphan)
17 ## END OF FILE #################################################################