add APT cleanup script

This commit is contained in:
Oliver Ladner 2020-07-31 09:45:02 +02:00
commit 33c8b61f95

12
apt_clean.sh Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
#
# Cleans apt stuff
# Clean /var/cache/apt/archives
apt clean
apt-get clean
# Removes orphaned packages that are no longer needed
apt autoremove
apt-get autoremove