Managing automatic App Store and OS X update installation on Yosemite
To go along with the automatic installation of security updates, there are also options in Yosemite’s App Store preferences in System Preferences to have your Mac automatically install available updates for OS X and updates for applications from the Mac App Store. For more details, see below the jump.
Apple has published a KBase article that explains in general how the automatic updates work. The first time updates are available on your Mac, OS X will prompt you with the choice of turning on the Always Update option.
When the Always Update option is selected, the following options should show up as checked in the App Store preferences in System Preferences:
- Install app updates
- Install OS X updates
These options can also be selected by going into the App Store preferences in System Preferences and checking the correct checkboxes. When these options are checked in the App Store preferences, the Mac will check for new updates overnight and install them. If a reboot is needed as part of installing an update, the Mac will reboot automatically.
It’s possible to manage these settings by setting the correct values in /Library/Preferences/com.apple.commerce.plist. To enable app updates from the Mac App Store to be installed automatically, run the following command with root privileges:
defaults write /Library/Preferences/com.apple.commerce AutoUpdate -bool TRUE
To stop app updates from the Mac App Store from being installed automatically, run the following command with root privileges:
defaults write /Library/Preferences/com.apple.commerce AutoUpdate -bool FALSE
To enable OS X updates to be installed automatically, run the following command with root privileges:
defaults write /Library/Preferences/com.apple.commerce AutoUpdateRestartRequired -bool TRUE
To stop OS X updates from being installed automatically, run the following command with root privileges:
defaults write /Library/Preferences/com.apple.commerce AutoUpdateRestartRequired -bool FALSE
Because these values can be managed separately, it’s possible to set App Store updates updates to be installed automatically while allowing the user to decide when to install OS X updates. To enable this, run the following commands with root privileges:
defaults write /Library/Preferences/com.apple.commerce AutoUpdate -bool TRUE
defaults write /Library/Preferences/com.apple.commerce AutoUpdateRestartRequired -bool FALSE
In this scenario, the App Store preferences in System Preferences will have the Install app updates checkbox checked and the Install OS X updates checkbox unchecked.
One important thing to know about forcing automatic installation of app and OS X updates is that the Software Update function on the system in question must be set to automatically check for updates. Without the automatic checks, app and OS X updates will not automatically install.
To control the automatic update check using the softwareupdate command line tool, run the following commands with root privileges:
To enable the automatic update check:
softwareupdate --schedule on
To disable the automatic update check:
softwareupdate --schedule off
You can also manage this using the defaults command line tool. To enable the automatic update check using defaults, run the following command with root privileges:
defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool TRUE
To disable the automatic update check using defaults, run the following command with root privileges:
defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool FALSE
Hi, it appears the setting to “Automatically download apps purchased on other Macs” is controlled separately. Do you know a terminal method to disable that? Thanks for all of your informative posts.
Has anything changed for 10.11, or is this still accurate?
I believe that it’s still accurate for the most part. the automatic update extension has changed from “com.apple.commerce” to “com.apple.commerce.plist” on 10.11.3
Either “com.apple.commerce” or “com.apple.commerce.plist” should work.
I there a way to set update download / install times? Our internet is limited, and have unlimited access between 2-8 AM.
Hi Kelley,
The things that come to mind about update download/install times would be using a managed platform like munki to trigger/install these.
That being said, if you have a apple caching server (apple server) running and configured the machines should connect there first to download the updates.
works great. I tried to change that auto check update setting from UI, it always revert back to chekced. Have to run from command line with sudo.
Thanks for sharing.
Is the com.apple.commerce payload still valid? I’m attempting to control these options via configuration profile and the AutoUpdate and AutoUpdateRestartRequired keys aren’t working. The com.apple.SoftwareUpdate payload works fine.
Can these settings be done in a Profile? I am trying to enable them in a profile into com.apple.commerce, but they are NOT getting set in the System Prefs.
AutomaticCheckEnabled
CriticalUpdateInstall
ManagedDeferredInstallDelay
90
PayloadDescription
Configures Software Update settings
PayloadDisplayName
Software Update
PayloadIdentifier
PayloadOrganization
PayloadType
com.apple.SoftwareUpdate
PayloadUUID
568ADBE9-2452-4374-A5E5-448986E77E35
PayloadVersion
1
forceDelayedSoftwareUpdates