Skip to content

Instantly share code, notes, and snippets.

@narate
Last active August 29, 2015 14:04
Show Gist options
  • Save narate/3cdf6a8c47ee47e2d151 to your computer and use it in GitHub Desktop.
Save narate/3cdf6a8c47ee47e2d151 to your computer and use it in GitHub Desktop.
Mac OS X software update command line tools for Debian/Ubuntu user!
#!/bin/bash
action=$1
if [[ "$action" == "update" ]]; then
softwareupdate -lv
elif [[ "$action" == "upgrade" ]]; then
softwareupdate -iva
else
echo "No action for $action"
fi
@narate
Copy link
Author

narate commented Jul 29, 2014

Example.
Show updates
$ sudo apt-get update

Install updates
$ sudo apt-get upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment