Home > Mac administration, Mac OS X > Managing automatic App Store and OS X update installation on Yosemite

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.

always_update

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

Screen Shot 2014-12-27 at 6.39.14 PM

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.

Screen Shot 2014-12-29 at 3.52.36 PM

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
  1. Aono
    January 29, 2015 at 8:23 pm

    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.

  2. November 12, 2015 at 10:11 pm

    Has anything changed for 10.11, or is this still accurate?

  3. Isaac
    March 11, 2016 at 7:28 pm

    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

    • March 11, 2016 at 7:32 pm

      Either “com.apple.commerce” or “com.apple.commerce.plist” should work.

  4. Kelley
    April 2, 2017 at 4:13 am

    I there a way to set update download / install times? Our internet is limited, and have unlimited access between 2-8 AM.

    • April 7, 2017 at 6:36 pm

      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.

  5. July 26, 2017 at 8:53 pm

    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.

  6. Ben
    October 15, 2018 at 7:48 pm

    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.

  7. Jerry Horn
    December 5, 2018 at 10:28 pm

    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.

    • Peter
      January 7, 2019 at 8:39 pm

      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

  1. No trackbacks yet.

Leave a comment