Created
October 22, 2019 06:57
-
-
Save csloz/d936b3ccdb89bfbc5b3071dae0054cf9 to your computer and use it in GitHub Desktop.
Reset Apple Software Update Catalog to defaults
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 | |
# Reset Software Update Catalog to defaults | |
# Author: L. Sheed | |
# Deprecated warning can be ignored | |
/usr/bin/sudo defaults delete /Library/Preferences/com.apple.SoftwareUpdate CatalogURL | |
/usr/bin/sudo defaults delete com.apple.SoftwareUpdate CatalogURL | |
/usr/bin/sudo softwareupdate --clear-catalog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment