DEV Community

Muhamad Haris Setiawan
Muhamad Haris Setiawan

Posted on


How to Install Homebrew (MacOS)

Since it's very important for us to make our mac perfect to be developer tools we need command to make it easy to install tool. here are the steps:

If you are Apple Silicon or M1 user please install rosetta 2 before continue and set terminal opened by rosetta 2 this link will guide you. Apple Rosetta2

XCode Command Line Tools

If you don't have XCode installed, it's best to first install the command line tools to install homebrew

$ xcode-select --install
Enter fullscreen mode Exit fullscreen mode

Then main of title, install homebrew:

Homebrew Installation

$ /bin/bash -c "$(curl -fsSL"
Enter fullscreen mode Exit fullscreen mode

Well it's take a little bit long, just make a glass of coffee when it's done.
To make it sure your homebrew ready type this code

$ brew --version
Homebrew 3.2.16
Homebrew/homebrew-core (git revision d0506b30624; last commit 2021-10-17)
Enter fullscreen mode Exit fullscreen mode
$ brew doctor
Enter fullscreen mode Exit fullscreen mode

Oke, you'r ready to brew 🍺

Top comments (0)

Timeless DEV post...

Git Concepts I Wish I Knew Years Ago

The most used technology by developers is not Javascript.

It's not Python or HTML.

It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.

I'm talking about Git and version control of course.

One does not simply learn git