Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
All-in-one script for system maintenance via APT
#!/bin/sh
#
# All-in-one script for system maintenence via APT
#
# sudo wget http://files.idlesoft.net/pub/update -O /usr/local/sbin/update
# sudo chmod a+x /usr/local/sbin/update
#
echo ".::Updating sources::."
apt-get update
echo
echo ".::Upgrading packages::."
apt-get upgrade
echo
echo ".::Upgrading distribution packages::."
apt-get dist-upgrade
echo
echo ".::Removing unnecessary packages::."
apt-get autoremove
echo
echo ".::Cleaning up::."
apt-get autoclean
echo
echo ".::All done, have a nice day :-)::."
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment