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:
parent
b0282f5d26
commit
2a9dfc7421
|
@ -33,10 +33,14 @@ rm -rf /usr/share/info/*
|
|||
rm -rf /usr/share/zoneinfo/*
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue