Skip to content

Instantly share code, notes, and snippets.

@nmcspadden
Created January 9, 2017 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmcspadden/ebe1db033d4c12046b4cf4080fb37aba to your computer and use it in GitHub Desktop.
Save nmcspadden/ebe1db033d4c12046b4cf4080fb37aba to your computer and use it in GitHub Desktop.
# Our managed installs and uninstalls:
my_list_of_managed_installs = [
'GoogleChrome',
'Firefox',
]
my_list_of_managed_uninstalls = [
'MacKeeper',
]
# Read the file from the Managed Installs manifests directory
local = readInLocalManifestOnDisk('/Library/Managed Installs/manifests/extra_packages')
# Assign our local managed installs
local['managed_installs'] = my_list_of_managed_installs
# Assign our local managed uninstalls
local['managed_uninstalls'] = my_list_of_managed_uninstalls
# Write back to disk
writeLocalManifestToDisk(local, '/Library/Managed Installs/manifests/extra_packages')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment