docker-selfoss/scripts/debian_cleaner.sh
Jean Baptiste Favre 01163323c2 Initial commit
2016-06-27 22:45:06 +02:00

13 lines
450 B
Bash

#!/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/*