3
# /usr/share/live-helper/hooks/minimal - hook list for live-helper(7)
4
# Copyright (C) 2006-2009 Daniel Baumann <daniel@debian.org>
6
# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
7
# This is free software, and you are welcome to redistribute it
8
# under certain conditions; see COPYING for details.
12
# Removing unused packages
13
for PACKAGE in apt-utils aptitude man-db manpages info wget
15
if ! apt-get remove --purge --yes "${PACKAGE}"
17
echo "WARNING: ${PACKAGE} isn't installed"
21
apt-get autoremove --yes || true
23
# Removing unused files
24
find . -name *~ -print0 | xargs -0 rm -f
26
rm -rf /var/cache/man/*
29
for FILE in $(find /var/log/ -type f)