Well, Guys! The advanced Mac users probably valued by using the Homebrew package manager. However, which considerably simplifies the method of installing command-line software & tools on a Mac. In this guide, you will learn the way to Install Homebrew on Mac.
For instance, whether you guys like to easily install favorite command line tools on a Mac such as the cask, htop, wget, nmap, tree, irssi, links, colordiff, or effectively any other familiar unix command-line utility. However, you guys are also able to perform so with a simple command. Though the Homebrew downloads & builds the package for you.
This is clearly aimed at more scientifically savvy Mac users who spend any time at the command line. Whilst there is no specific problem for novice users installing Homebrew on their Mac. Similarly, the odds of novices finding it advantageous are slim, except they also intend to begin learning the command line environment. On the other hand that to power users who practically live in a terminal environment. If longtime Mac users or migrating to the platform from the Windows or Linux world, who will instantly view the value of Homebrew.
Requirements for Installing Homebrew on Mac OS
Requirements, in order to install the Homebrew on a Mac, include the following:
- A Mac managing the Mac OS X 10.10 or later, so earlier versions are a type of support
- Command Line Tools should be installed on the Mac (either separately or via Xcode)
- Knowledge of the command line & by using the bash or zsh
Presuming you are interested in installing Homebrew & meet those prerequisites, then the rest is equally simple
Way to Install Homebrew on Mac OS
The easiest tips and tricks to install Homebrew is via ruby & curl, accomplished with a single command. Similarly, this approach is similar for installing Homebrew in all supported versions of Mac OS & Mac OS X.
- Here, first of all, you have to head to the “Terminal” application, found in /Applications/Utilities/
- Now enter the following command into a single line of the terminal:
For MacOS Catalina, macOS Mojave, & MacOS Big Sur:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Though for macOS High Sierra, Sierra, El Capitan, & earlier:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Here you have to hit Return and you will see a series of lines about what the script will install & where. Now hit Return again to agree or hit Escape in order to cancel
- Now enter the administrator password (required by sudo execution) in order to start the installation
Similarly, the installation of Homebrew will take a whilst relaying on the speed of your Mac & internet connection, as each important package is downloaded & installed by the script.
When finishing so then you guys will also see an “Installation successful!” message.
Now you are also ready to install software packages via Homebrew. Or you are also able to read the help documentation with the following command:
Installing Software Packages via Homebrew on Mac
Though installing the packages with Homebrew is pretty straightforward, just use the following syntax:
brew install [package name]
For instance, to install wget via Homebrew you could use the following syntax:
brew install wget
Too easy. When at a time it is complete so then you can also run wget as usual.
Important note: Homebrew is not the just way to install command-line software. So you guys are also able to install command line tools on a Mac yourself & next assemble and make software separately. For instance, we discuss installing wget on Mac OS just without Homebrew here & it also utilizes the general configure & make process. There is nothing incorrect with that approach (& arguably it probably is preferable for users who like limited packages & a slimmer footprint). However, whether you guys are accustomed to a package manager such as dpkg, apt-get, or rpm you will nearly certainly appreciate & prefer to use Homebrew.
Way to Disable Homebrew Analytics Tracking
Though the Homebrew now defaults to utilize the anonymized behavioral analytics tracking. Whether you guys don’t want to take part in that or you would just rather turn off the feature just to reduce network traffic or for privacy causes. Or whatever other reason, you guys can also manage the following command after successfully installing Homebrew on a Mac. Therefore this will select out of Homebrew analytics:
brew analytics off
Hit return & just after a moment or so the analytics tracking in Homebrew will also be turned off.
Way to Remove HomeBrew from a Mac
Whether you guys have installed Homebrew. But later decide you guys desire to clear Homebrew from a Mac for some cause or another. You can also remove it with another ruby script simply run from the command line. Select the script that aligns with your version of macOS:
Clearing them Homebrew in MacOS Catalina, macOS Big Sur, & macOS Mojave:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
Uninstalling the Homebrew from macOS High Sierra, Sierra, El Capitan, & earlier:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Otherwise, you could also download that “uninstall” script directly & run it yourself.
Must read this article: Can I Use VPN On Phone? How To Use?
Well, I hope that you guys like this guide. In case of an issue or if you have any queries so then you can ask us in the comments section below.