[MacTUG] Turn on Auto Update via script
Dani Roloson
daroloso at uwaterloo.ca
Wed Apr 26 15:08:39 EDT 2017
### Script to turn on automatic updates
##
## macOS
##
# Automatically check for updates
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled 1
# Download newly available updates in background
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload 1
# Install System data files & security updates
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate CriticalUpdateInstall 1
# Install App updates
/usr/bin/defaults write /Library/Preferences/com.apple.commerce AutoUpdate 1
# Install OS X updates
/usr/bin/defaults write /Library/Preferences/com.apple.commerce AutoUpdateRestartRequired 1
##
## Adobe Flash Player
##
echo AutoUpdateDisable=0 > /Library/Application\ Support/Macromedia/mms.cfg
echo SilentAutoUpdateEnable=1 >> /Library/Application\ Support/Macromedia/mms.cfg
________________________________
From: mactug-bounces at lists.uwaterloo.ca [mactug-bounces at lists.uwaterloo.ca] on behalf of Dani Roloson [daroloso at uwaterloo.ca]
Sent: April 26, 2017 13:39
To: MacTUG
Subject: [MacTUG] Turn on Auto Update via script
>From https://discussions.apple.com/thread/6683455?start=0&tstart=0
com.apple.commerce.plist
AutoUpdateRestartRequired - Install OS X updates
AutoUpdate - Install App updates
com.apple.SoftwareUpdate.plist
AutomaticCheckEnabled - Automatically check for updates
AutomaticDownload - Download Newly available updates in Background
CriticalUpdateInstall - Install System data files & security updates
so these can be set via script e.g.
defaults write /Library/Preferences/com.apple.commerce AutoUpdate 1
________________________________
/Library/Application Support/Macromedia/mms.cfg
AutoUpdateDisable=0
SilentAutoUpdateEnable=1
because that's exactly where you'd expect to find the Adobe Flash update preferences.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uwaterloo.ca/pipermail/mactug/attachments/20170426/b5afe025/attachment.html>
More information about the MacTUG
mailing list