The easiest way to install multiple Unix applications and open source software onto macOS Sierra is via a package manager, unfortunately macOS Sierra doesn’t come with one, but fortunately there are some good folks that care. They come in the form of Homebrew.
To download install Homebrew run the install script on the command line as below and let the script do its thing:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
If you don’t have Apples Xcode command line tools installed you will be prompted to install it. This guide goes though installing both xCode and the command line developer tools. You can get away with just the command line tools.
Download and install it, you also need to open Xcode agree to the license and it will install its components.
Or just return to the command line if you haven’t installed xCode and follow the prompts to install Homebrew.
To check for any issues with the install run:
To search for an application:
brew install <application-name>
To list all apps installed by Homebrew
To remove an installed application
brew remove <application-name>
To update Homebrew
To see what else you can do
Where does Homebrew install stuff …. in the Cellar
Where the brew lives.
You can see your Homebrew configuration by running
Output should be similar to …
192-168-1-5:~ admin$ brew config HOMEBREW_VERSION: 1.0.3-dirty ORIGIN: https://github.com/Homebrew/brew HEAD: 8724e11a6b5805dffee7133526bf5457c0a5d02a Last commit: 15 hours ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: 9e3a66b6b7ca978bfea86897dcc3391c37f9f0ef Core tap last commit: 11 hours ago HOMEBREW_PREFIX: /usr/local HOMEBREW_REPOSITORY: /usr/local/Homebrew HOMEBREW_CELLAR: /usr/local/Cellar HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com CPU: quad-core 64-bit sandybridge Homebrew Ruby: 2.0.0-p648 Clang: 8.0 build 800 Git: 2.8.4 => /Library/Developer/CommandLineTools/usr/bin/git Perl: /usr/bin/perl Python: /usr/bin/python Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby Java: N/A macOS: 10.12-x86_64 Xcode: N/A CLT: 184.108.40.206.1.1472435881 X11: N/A
All installations via Homebrew are filed independently in the filing system in /usr/local/Cellar and linked into /usr/local/bin which is a directory which allows you to run these commands and apps as if part of the regular operating system.