HomeBrewのサイトを確認
googleでHomeBrewで検索すれば出てきます。
アドレスはhttp://brew.sh/index_ja.html
ターミナルを起動し、インストール部分に書いてあるスクリプトをコピペしEnterキーを押します。
しかし
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
You have not agreed to the Xcode license.
Before running the installer again please agree to the license by opening
Xcode.app or running:
sudo xcodebuild -license
と言われるのでxcodebuildライセンスに同意しないといけないので。
sudo xcodebuild -license
をターミナルで実行さ同意する。
そのあと、インストールのスクリプトを実行させるとインストールされる。