Created
August 18, 2011 21:37
-
-
Save EddieRingle/1155304 to your computer and use it in GitHub Desktop.
All-in-one script for system maintenance via APT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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