Installing Homebrew + Cask on Mac

Note: If you’re not running a recent version of macOS (formerly known as Mac OS X), you may need to address a few items. Please consult the below¬†NotesForOlderMacs.md.

1. Install Xcode CLI Tools (only)

xcode-select --install

Run from a CLI (command line interface), such as Terminal.app (found in the /Applications/Utilities/ directory). This will perform the install of the command line tools for Xcode, as opposed to a full Xcode install; you may alternately perform the full Xcode install.

2. Install Homebrew

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

This command will use ruby (a language included in the Xcode cli tools) to download a well maintained install script, to perform the install and setup of homebrew (and the brew command). The $(curl ...) portion performs a download of the install script and passes it to the ruby command to execute. Feel uncomfortable executing code you didn’t write? Read the install script for yourself.

Search

brew search wget

Install

brew install wget

Use

Use like normal!

wget --help

3. Setup (Tap) Homebrew Cask

brew tap caskroom/cask

This taps the cask caskroom. This makes all cask content available for search and install.

Search

brew cask search google-chrome

Alternatively, cask availablility will return under a normal brew search command, such as brew search google-chrome.

Install

brew cask install google-chrome

Use

Use like normal! Google Chrome is now an application in your /Applications/ directory, accessible via Finder, Launchpad, etc.

Why?

Homebrew is about the easiest way to install tools for Mac. Homebrew Cask is about the easiest way to install a GUI application, which does perform a native install, it’s just tracked to be more easily upgraded.R

Leave a Reply

Your email address will not be published. Required fields are marked *