Last active
August 29, 2015 14:04
-
-
Save narate/3cdf6a8c47ee47e2d151 to your computer and use it in GitHub Desktop.
Mac OS X software update command line tools for Debian/Ubuntu user!
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/bash | |
action=$1 | |
if [[ "$action" == "update" ]]; then | |
softwareupdate -lv | |
elif [[ "$action" == "upgrade" ]]; then | |
softwareupdate -iva | |
else | |
echo "No action for $action" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example.
Show updates
$ sudo apt-get update
Install updates
$ sudo apt-get upgrade