Initial commit

This commit is contained in:
Jean Baptiste Favre
2016-06-27 22:45:06 +02:00
parent d07e2b2aba
commit 01163323c2
3 changed files with 56 additions and 0 deletions

12
scripts/debian_cleaner.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
for FILE in $(ls -1d /usr/share/locale/*|grep -v en);do rm -rf $FILE;done
for FILE in $(ls -1R /usr/share/i18n/locales/* | grep -v en_GB | grep -v en_US);do rm -rf $FILE;done
find /usr/share/doc -type f -exec rm -f {} \;
find /usr/share/man -type f -exec rm -f {} \;
/usr/bin/apt-get -y autoremove
/usr/bin/apt-get clean
/bin/rm -rf /var/lib/apt/lists/*
/bin/rm -f /var/lib/dpkg/info/*
/bin/rm -f /var/cache/debconf/*
/bin/rm -rf /tmp/*