How to install Rosetta 2 via Terminal on a Apple silicon machine

So I get asked this a lot and on my day to day setup of any Apple silicon mahcine this is one of the first things I do in setting up a new build of macOS. All you need to do is open up Terminal paste in this command

press returned It prompts you to confirm by typing A press return and Rosetta is installed very quickly. You can also try this terminal command.

x
softwareupdate --install-rosetta
softwareupdate --install-rosetta --agree-to-license

Its a very quick install and should not give you any issues in installing it on a Apple Silicon Based machine.

To check rosetta is installed run ether of these commands.

Paste and run the following command to check if the Rosetta runtime is present:
ls /Library/Apple/usr/libexec/oah/

If the directory exists and lists files (like libRosettaRuntime), Rosetta 2 is installed.

Or you can run /usr/bin/arch
If you see arm64, congratulations—Rosetta 2 is ready to go.

Apple help article:

https://support.apple.com/en-gb/102527

https://support.apple.com/en-gb/116943