Automated configuration (by script)

Sylvain's Avatar


28 May, 2018 12:36 PM

I'm installing GPG Suite 2018.1 on several Macs, using an automated deployment mechanism.

Among things I want to configure after the package is installed, there is the automated update check that I want to disable; I know how to disable it by hand in "system preferences => gpg suite", but I need a way to disable it in a script (with sed, or defaults, or anything). And I didn't find how to do that.

Can someone tell me how to disable "automatic update check" with command line ?


  1. Support Staff 1 Posted by Luke Le on 06 Jul, 2018 07:53 PM

    Luke Le's Avatar

    Hi Sylvain,

    would you mind telling us a little bit about your use case? How many Macs, how you will perform the update check and generally how your deployment mechanism works. We are always interested in learning more how our suite is installed by sys admins so we can potentially find ways to make it easier.

  2. 2 Posted by Sylvain on 26 Jul, 2018 07:56 AM

    Sylvain's Avatar

    Hi Luke;

    We have something like 30 Mac that we (sysadmins) monitor & administrate via a tool called "Desktop Central" : every Mac has an agent running, and the agent regularly checks with a central server if new "configurations" have to be applied.

    It's important for us that every Mac has the same set of configuration, software, versions, etc. to ease administration and avoid strange bugs happening only to one person.
    Moreover, there is a bug in the most recent versions of gnupg that annoys us; the bug has been reported, but it probably won't be fix soon. (the bug is in gpg itself, not GPGsuite).

    For those different reasons, we don't want GPGsuite to update automatically; if WE judge that an update is needed, WE will trigger the update via the "Desktop Central" tool.

    Desktop Central allow us to deploy files and run scripts on the users' MAC; we already have the mechanism to install the version of GPGSuite we want; all we need now is a shell command to disable the auto update, hence this thread.

    Hope it is clearer than before .. :)

  3. Support Staff 3 Posted by Mento on 27 Jul, 2018 07:57 AM

    Mento's Avatar

    Hi Sylvain,

    to disable update checks for the current user run this command:

    defaults write org.gpgtools.updater SUEnableAutomaticChecks -bool NO

    Regards, Mento

  4. 4 Posted by Sylvain on 30 Jul, 2018 09:17 AM

    Sylvain's Avatar

    Hi Mento ! Thank you for your answer.

    When I launch this command, I don't have any error, which is good; but then I go to the GPGSuite parameters, the "Automatic update check" tick is still checked :/

  5. Support Staff 5 Posted by Steve on 03 Aug, 2018 02:04 PM

    Steve's Avatar

    Are you on macOS 10.13.6? We briefly tested this and it worked as expected here. Sorry, but I have to ask the obvious: Did you close and relaunch System Preferences > GPG Suite Preferences after applying the command?

  6. Luke Le closed this discussion on 16 Oct, 2018 10:50 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac