The easiest way to install a number of Linux 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:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
If you don’t have Apples Xcode command line tools installed you may 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 installation.
Download and install it if prompted and it will install its components.
Then just follow the prompts to install Homebrew.
After this Homebrew is installed and ready to install other apps.
To check for any issues with the install run:
One issue that typically comes up is an outdated or missing version of XQuartz.
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.
This directory is also out of the SIP bounds so there should be no authentication macOS error dialog boxes.
HomeBrew is a great package manager just start installing some apps and explore.!