Skip to content

Instantly share code, notes, and snippets.

@mallej
Last active February 5, 2018 08:52
Show Gist options
  • Select an option

  • Save mallej/a540f9bccebeadbc7c570f949f433fd9 to your computer and use it in GitHub Desktop.

Select an option

Save mallej/a540f9bccebeadbc7c570f949f433fd9 to your computer and use it in GitHub Desktop.
[macOS - Update] #macos #update #softwareupdate #macappstore #upgrade
# In order to block this update, without blocking the App Store, we are pushing the following script in a policy:
sudo softwareupdate --ignore "macOS"
sudo softwareupdate --ignore "macOS High Sierra"
sudo softwareupdate --ignore "macOS High Sierra Update"
sudo softwareupdate --ignore "macOS High Sierra 10.13.3 Update"
# If you need to allow the users to update, after testing, running the following script will reset the software update to allow this:
sudo softwareupdate --reset-ignored
# list ignored updates
sudo softwareupdate --ignore
# A simple command line interface for the Mac App Store. Designed for scripting and automation.
# https://github.com/mas-cli/mas
# Homebrew is the preferred way to install:
brew install mas
# show all installed applications
mas list
# search for applications by name using "mas search"
mas search Sierra
# Install macOS Sierra
mas install 1127487414
# Install macOS High Sierra
mas install 1246284741
# -l | --list List all available updates.
softwareupdate -l
# stop the “upgrade to high sierra” notifications with this
# The identifier is the first part of the item name (before the dash and version number) that is shown by --list.
sudo softwareupdate --ignore macOS High
# And when it's approved. Clears the per-machine list of ignored updates.
sudo softwareupdate --reset-ignored
/Applications/Install\ macOS\ Sierra.app/Contents/Resources/startosinstall --applicationpath /Applications/Install\ macOS\ Sierra.app --nointeraction
https://www.jamf.com/jamf-nation/discussions/23582/macos-sierra-update-10-12-4-issue-and-fix
https://github.com/mas-cli/mas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment