scripts/apt_clean.sh

12 lines
188 B
Bash
Executable file

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