2017-06-30 18:25:20 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Remove packages not necessary for release
|
2017-12-04 17:31:20 +01:00
|
|
|
apt-get -y purge bash-completion file gcc git htop openssh-server tree uuid-runtime vim
|
|
|
|
dpkg -l | awk '{print $2}' | grep '\-dev$' | apt-get -y purge
|
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 {} \;
|