summaryrefslogtreecommitdiff
path: root/hooks/minimal
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/minimal')
-rwxr-xr-xhooks/minimal6
1 files changed, 5 insertions, 1 deletions
diff --git a/hooks/minimal b/hooks/minimal
index ff57deb2d..5761abb2d 100755
--- a/hooks/minimal
+++ b/hooks/minimal
@@ -25,10 +25,14 @@ find . -name *~ | xargs rm -f
rm -rf /var/cache/man/*
-# Cleaning apt
+# Cleaning apt lists
rm -rf /var/lib/apt/lists
mkdir -p /var/lib/apt/lists/partial
+# Cleaning apt cache
+rm -rf /var/cache/apt
+mkdir -p /var/cache/apt/archives/partial
+
# Truncating logs
for FILE in $(find /var/log/ -type f)
do