Hasan Setiawan

Write, write, write give your wings on code!

Follow me on GitHub

Mac setup homebrew

This process relies heavily on the macOS package manager called Homebrew. Using the brew command you can easily add powerful functionality to your mac, but first we have to install it. This is a simple process, but you need to launch your Terminal (/Applications/Utilities/Terminal) application and then enter:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Just follow the terminal prompts and enter your password where required. This will install Homebrew and also install the required XCode Command Line Tools if you don't already have XCode installed. This may take a few minutes, but when complete, a quick way to ensure you have installed brew correctly, simply type:

                
$ brew --version
Homebrew 1.0.6
Homebrew/homebrew-core (git revision 1b10; last commit 2016-10-04)
                
            

You should probably also run the following command to ensure everything is configured correctly:

$ brew doctor

It will instruct you if you need to correct anything.

Extra Brew Taps

We are going to use some brews that require some external taps:

            
$ brew tap homebrew/dupes
$ brew tap homebrew/versions
$ brew tap homebrew/php
$ brew tap homebrew/apache
            
          

If you already have brew installed, make sure you have the all the latest available brews:

$ brew update Yes we are ready to brewing with brew