Last active
February 5, 2018 08:52
-
-
Save mallej/a540f9bccebeadbc7c570f949f433fd9 to your computer and use it in GitHub Desktop.
[macOS - Update] #macos #update #softwareupdate #macappstore #upgrade
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /Applications/Install\ macOS\ Sierra.app/Contents/Resources/startosinstall --applicationpath /Applications/Install\ macOS\ Sierra.app --nointeraction |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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