Step By Step: Installing Homebrew on Mac
Homebrew is a popular package manager for macOS that makes it easy to install and manage applications and libraries. Follow these steps to get Homebrew set up on your Mac:
Step 1: Install Command Line Tools
Homebrew requires Xcode Command Line Tools to be installed. To check if you already have it, run:
gcc --version
If it displays a version, you can skip this step. Otherwise, run:
xcode-select --install
and click Install to download Xcode Command Line Tools. This could take a while so feel free to get a cup of coffee.
Step 2: Install Homebrew
Now install Homebrew with the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
This will install Homebrew to /usr/local/bin.
Step 3: Configure Path
export PATH=/opt/homebrew/bin:$PATH
Step 4: Verify the Installation
Check that Homebrew is installed properly by running:
brew doctor
This should output that your system is ready to brew.
Check Homebrew version
brew -v
Step 5: Install Apps and Libraries
You can now install apps like Git, Node, Python etc. easily. For example, to install Git:
brew install git
Homebrew will download and install Git for you.
Here are some common Homebrew commands:
brew search [app]
– Searches all available appsbrew install [app]
– Installs the appbrew update
– Updates Homebrew and appsbrew list
– Lists all installed appsbrew uninstall [app]
– Uninstalls the app
That’s it! Homebrew is ready to help you easily install and manage apps on Mac.