Skip to content

Instantly share code, notes, and snippets.

@EddieRingle
Created August 18, 2011 21:37
Show Gist options
  • Save EddieRingle/1155304 to your computer and use it in GitHub Desktop.
Save EddieRingle/1155304 to your computer and use it in GitHub Desktop.
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