Created
October 13, 2011 07:14
-
-
Save rklemme/1283629 to your computer and use it in GitHub Desktop.
Update all packages on debian based system
This file contains hidden or 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 -fe | |
# Do a complete apt update to the current | |
# state of affairs. | |
test `id -u` -eq 0 || exec sudo "$0" "$@" | |
set -x | |
apt-get update | |
apt-get autoremove --yes | |
apt-get dist-upgrade --auto-remove --yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment