Skip to content

Instantly share code, notes, and snippets.

@sidartaoliveira
Created August 12, 2019 12:14
Show Gist options
  • Save sidartaoliveira/48c9c67606cb6d2a93b55a2c979fd5ce to your computer and use it in GitHub Desktop.
Save sidartaoliveira/48c9c67606cb6d2a93b55a2c979fd5ce to your computer and use it in GitHub Desktop.
# enable sofware update automatic
sudo /usr/bin/defaults write /Library/Preferences/com.apple.commerce AutoUpdate -bool TRUE &&
sudo /usr/bin/defaults write /Library/Preferences/com.apple.commerce AutoUpdateRestartRequired -bool TRUE &&
sudo /usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticallyInstallMacOSUpdates -bool TRUE &&
sudo /usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool TRUE &&
sudo /usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload -bool TRUE &&
sudo /usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate ConfigDataInstall -bool TRUE &&
sudo /usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate CriticalUpdateInstall -bool TRUE
AutomaticDownload
# enable firewall (possible values 1 or 2 # TODO - understand the difference betwee 1 and 2)
sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment