Removing the whole cache, not just the .deb cache in mini and minimal hooks, thanks to Franklin Piat <fpiat@bigfoot.com>.

This commit is contained in:
Daniel Baumann 2007-11-12 22:51:27 +01:00
parent b0282f5d26
commit 2a9dfc7421
2 changed files with 10 additions and 2 deletions

View File

@ -33,10 +33,14 @@ rm -rf /usr/share/info/*
rm -rf /usr/share/zoneinfo/* rm -rf /usr/share/zoneinfo/*
rm -rf /var/cache/man/* rm -rf /var/cache/man/*
# Cleaning apt # Cleaning apt lists
rm -rf /var/lib/apt/lists rm -rf /var/lib/apt/lists
mkdir -p /var/lib/apt/lists/partial mkdir -p /var/lib/apt/lists/partial
# Cleaning apt cache
rm -rf /var/cache/apt
mkdir -p /var/cache/apt/archives/partial
# Truncating logs # Truncating logs
for FILE in $(find /var/log/ -type f) for FILE in $(find /var/log/ -type f)
do do

View File

@ -25,10 +25,14 @@ find . -name *~ | xargs rm -f
rm -rf /var/cache/man/* rm -rf /var/cache/man/*
# Cleaning apt # Cleaning apt lists
rm -rf /var/lib/apt/lists rm -rf /var/lib/apt/lists
mkdir -p /var/lib/apt/lists/partial mkdir -p /var/lib/apt/lists/partial
# Cleaning apt cache
rm -rf /var/cache/apt
mkdir -p /var/cache/apt/archives/partial
# Truncating logs # Truncating logs
for FILE in $(find /var/log/ -type f) for FILE in $(find /var/log/ -type f)
do do