fd7e4a17db582017fd3feb14428978f619364555
[grml-live.git] / etc / grml / fai / grml / grml_cleanup_chroot.deborphan
1 #!/bin/bash
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 ################################################################################
9
10 # remove all packages not necessary anymore:
11 apt-get -y --purge autoremove
12
13 # remove packages until deborphan does not find anymore:
14 while [ "$(deborphan)" != "" ] ; do
15   apt-get -y --purge remove $(deborphan)
16 done
17
18 ## END OF FILE #################################################################