macOS

What is brew?

Brew or Homebrew is a package manager. Similar to Gentoo's Emerge, or Ubuntu's APT.

What does it do?

Homebrew installs the stuff you need that Apple didn’t. Installs packages to their own directory and then symlinks their files into /usr/local.

Installing brew:

Open Terminal and type:

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

Updating package list

Packages change all the time. To make sure the list of packages and their versions is updated run this:

brew update

Searching packages

To search for a specific package type:

brew search STRING

Installing package

brew install PACKAGE_NAME

Removing package

brew remove PACKAGE_NAME

Check for brew errors

brew doctor

More help

man brew