FROM: https://github.com/rtrouton/rtrouton_scripts/tree/master/rtrouton_scripts/install_rosetta_on_apple_silicon

This script will download and install Rosetta 2 for Apple Silicon Macs.

How the script works:

  1. Checks to see if the following conditions have been met:
    • OS version is macOS 11 or later.
    • If the Mac does not have an Intel processor
    • If an installer receipt for Rosetta 2 cannot be found.
  2. If the conditions are met, the script does the following:
    • Performs a non-interactive install of Rosetta 2 using the softwareupdate tool.
    • Reports on if the installation was successful or not.