Please disable your adblock and script blockers to view this page

Install/Uninstall Homebrew On Mac & Fix “Brew: Command Not Found”

Homebrew lets you install the stuff that didn’t come out of the box with your Mac. It works the same way as apt-get on Debian/Ubuntu system or yum on CentOS/Red Hat.

You can install almost all the Linux libs and tools on your Mac. Not only that, you can create your packages to install on other Mac systems. It has pure Git and Ruby underneath, so hack away with your knowledge and creativity.

Now coming to the point.

-bash: brew: command not found

If you got this error while brewing a package on your Mac, then you are not alone. The reason is simple. Homebrew is not installed on your system.

Brew Command Not Found

To fix that, we’ll see how to install homebrew.

Install Homebrew on Mac OS X

You can install Homebrew on Mac by running the following command into the terminal:

ruby -e "$(curl -fsSL"

This script will install Homebrew to /usr/local on your Mac. That way you won’t need sudo when you brew install.

macOS Requirements

  • A 64-bit Intel CPU
  • macOS 10.12 (or higher)
  • Command Line Tools (CLT) for Xcode: xcode-select –install, or Xcode
  • A Bourne-compatible shell for installation (e.g. bash or zsh)

Uninstall Homebrew from Mac OS X

Execute this single command given below in the terminal to completely remove Homebrew from Mac automatically:

ruby -e "$(curl -fsSL"

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.