2017-06-30 18:25:20 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Remove packages not necessary for release
|
2017-11-19 10:34:10 +01:00
|
|
|
apt-get -y purge bash-completion file gcc git htop libpq-dev python-dev openssh-server tree vim
|
2017-06-30 18:25:20 +02:00
|
|
|
apt-get -y --purge autoremove
|
|
|
|
|
|
|
|
# Clean package cache
|
|
|
|
apt-get -y clean
|
2017-08-31 21:54:13 +02:00
|
|
|
|
|
|
|
# Remove user settings
|
|
|
|
rm -rf /root/* /root/.*
|
|
|
|
|
|
|
|
# Remove git metadata
|
|
|
|
find / -name '.git*' -exec rm -rf {} \;
|