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 # Latest change: Sat Sep 06 20:03:58 CEST 2008 [mika]
8 ################################################################################
10 # remove all packages not necessary anymore:
11 apt-get -y --purge autoremove
13 # remove packages until deborphan does not find anymore:
14 while [ "$(deborphan)" != "" ] ; do
15 apt-get -y --purge remove $(deborphan)
18 ## END OF FILE #################################################################