Skip to content

Instantly share code, notes, and snippets.

@dombarnes
Created March 15, 2013 09:43
Show Gist options
  • Save dombarnes/5168667 to your computer and use it in GitHub Desktop.
Save dombarnes/5168667 to your computer and use it in GitHub Desktop.
Bash alias to switch Software Update Servers
# Switch to Work SUS
alias suwiki="sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL 'http://server.domain.tld:8088/index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog'"
alias suapple="sudo defaults delete /Library/Preferences/com.apple.SoftwareUpdate CatalogURL"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment