Skip to content

Instantly share code, notes, and snippets.

@omarzl
Created May 5, 2022 22:38
Show Gist options
  • Save omarzl/3fb896de35a0e41b3ac1d7e90336c32d to your computer and use it in GitHub Desktop.
Save omarzl/3fb896de35a0e41b3ac1d7e90336c32d to your computer and use it in GitHub Desktop.
# List all available installers
softwareupdate --list-full-installers
# In this case we are installing macOS Monterey 12.1
softwareupdate --fetch-full-installer --full-installer-version 12.1
installer_directory="/Applications/Install macOS Monterey.app"
# A + ↵ to accept the agreement
printf 'A\n' | sudo $installer_directory/Contents/Resources/startosinstall
# Validating that it was installed correctly
sw_vers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment