Skip to content

Instantly share code, notes, and snippets.

@cageyv
Last active May 31, 2023 10:23
Show Gist options
  • Save cageyv/13c197be664c103ddea1b5dbbca6f0aa to your computer and use it in GitHub Desktop.
Save cageyv/13c197be664c103ddea1b5dbbca6f0aa to your computer and use it in GitHub Desktop.
M1 Mac Software Installation Guide

In this guide, we are going to install some necessary software and utilities on a Mac with an M1 chip, specifically:

  • Rosetta 2
  • Homebrew
  • Docker Desktop for M1
  • XCode Command Line Tools
  • Several core tools via Homebrew
  1. Install Rosetta 2 Rosetta 2 allows applications that were compiled for an Intel processor to run on Apple Silicon (like the M1 chip).

To install Rosetta 2, open Terminal and enter:

softwareupdate --install-rosetta --agree-to-license
  1. Install Homebrew Homebrew is a free and open-source package manager for macOS that simplifies the installation of software.

To install Homebrew, open Terminal and enter:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

After running this script, follow the instructions presented in the terminal to complete the installation.

  1. Install Docker Desktop for M1 Docker Desktop allows you to build, share and run containers on your machine.

To install Docker Desktop for M1, download the .dmg file from the following URL: https://desktop.docker.com/mac/main/arm64/Docker.dmg

Once downloaded, open the .dmg file and drag the Docker app to the Applications folder.

  1. Install XCode Command Line Tools XCode Command Line Tools are a subset of the XCode developer suite that include tools like gcc and git, among others.

To install XCode Command Line Tools, open Terminal and enter:

xcode-select --install
  1. Install Core Tools via Homebrew Finally, we will use Homebrew to install some additional core utilities.

To install these tools, open Terminal and enter:

brew install gpg2 gnupg pinentry-mac jq wget git gh

Here's what each tool does:

  • gpg2 and gnupg: GNU Privacy Guard (GPG) is a tool for secure communication and data storage.
  • pinentry-mac: Allows GPG key passphrase entry via GUI in MacOS.
  • jq: A lightweight and flexible command-line JSON processor.
  • wget: A free utility for non-interactive download of files from the web.
  • git: A free and open-source distributed version control system.
  • gh: GitHub CLI tool to work with GitHub from the command line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment