Spotter-VM/99-cleanup.sh

15 lines
309 B
Bash
Raw Normal View History

#!/bin/bash
# Remove packages not necessary for release
2017-09-24 20:12:30 +02:00
apt-get -y purge bash-completion file git htop openssh-server tree vim
apt-get -y --purge autoremove
# Clean package cache
apt-get -y clean
# Remove user settings
rm -rf /root/* /root/.*
# Remove git metadata
find / -name '.git*' -exec rm -rf {} \;