Homebrew logo

Installing Homebrew on macOS BigSur

A Stepping Stone in Preparing a Robust Development Environment

See a series of simple steps on the Mac's Terminal CLI in order to install Homebrew on a fresh copy of macOS Big Sur.

published on 22 Feb 2021 in Development on macOS

In this article, we are describing a series of simple steps over the Mac's Terminal CLI, to install Homebrew on a fresh copy of macOS Big Sur.

Later, we will be installing the latest version of PHP using this configuration (which was 8.01 at the time of this writing), and then we'll use it for our local development environment for working on web applications generated with CodeIgniter Wizard.

Let's start by going to the Homebrew website, and copy the command code snippet under the title "Install Homebrew".

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Then open the Mac's Terminal.app, paste the code I copied in the command prompt, and then hit the return key. I'll be asked to supply a password for my user account which is also supposed to have administrative privileges at the Mac's operating system level.

Following the on-screen instructions, you may be asked to press the return key or re-enter my password several times at different points in the process.

Homebrew makes use of certain software libraries known as Apple's Xcode Developer Tools, therefore, if you hadn't already installed Xcode on your Mac, it will install these libraries first. The developer tools don't contain the Xcode IDE itself which is typically used for development of iOS and macOS applications, so the Homebrew installation will exclude the IDE and related desktop applications.

Homebrew installations may also typically take a while although in this video we fast-forwarded some parts for the sake of brevity. Depending on your system and Internet bandwidth it can take up to a couple of hours, so be patient, and do not interrupt the installations to avoid polluting your system library directories with intermediate and pre-mature installation files.

At this point, our Homebrew installation is complete. In the next tutorial, we'll be demonstrating how to install the latest version of PHP using Homebrew on mac OS Big Sur.

If you like this tutorial, or have any questions, we'll appreciate if you leave a comment below. You may also want to subscribe to our YouTube channel.

Share this on

What do you think?