Free macOS package manager Homebrew Calling Brew Cask Install is Disabled you to add, uninstall, or update applications by executing commands in the terminal.
Installing the most recent versions of numerous developer tools for macOS, including PostgreSQL, Python, PHP, Nginx, etc., is simple with Homebrew.
You will discover how to set up and utilize Homebrew on macOS in this article:
- A laptop with macOS Catalina or a higher version (no official support for older versions, but they may also work)
- Administrative rights
How Can Homebrew Be Installed On a Mac?
Calling Brew Cask Install is Disabled, to download and run the Homebrew installation script on your Mac, follow the procedures listed below.
1: Xcode Command Line Tools installation
An integrated programming environment for macOS called Xcode has the tools required for Homebrew to operate correctly.
Install only the Xcode command line tools because you don’t need the complete 10GB Xcode bundle from the App Store.
Take these actions:
- To see all the utilities, choose Go from the Finder and then click Utilities.
- Look for and open the Terminal application.
- To install the Xcode command line tools, enter the following command in the terminal
Installing Xcode-select
- To continue with the installation, click Install.
- The Xcode License Agreement is displayed by the script. Click Agree if you accept the terms, then wait for the installation to complete.
2: Set up Homebrew
To install Homebrew after installing the Xcode command-line tools, follow the instructions listed below.
1: Downloading the installation script is step one.
Users of earlier versions of macOS, like as El Capitan, Sierra, and High Sierra, run:
Ruby /usr/bin -e "Curl -fsSL $(
https://raw.githubusercontent.com/Homebrew/install/master/install)"
Catalina, Mojave, or Big Sur users who run:
-c /bin/bash "Curl -fsSL $(
https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
2: When prompted, enter your administrator password and click Return to proceed. Attend to the download’s completion.
You are informed of the changes that will be made to your machine by the installation script.
3: To install Homebrew, press Return. Wait for the Installation successful message to appear as the installation may take a few minutes.
Disable Analytics
By default, Calling Brew Cask Install is Disabled, homebrew gathers some system data and transmits it back to the program’s creators. It gathers the following data:
- The user agent for Homebrew.
- A version of Google Analytics.
- both the user ID and tracking ID for homebrewed analytics.
- events, such as the category for Homebrew install events.
Run: to prevent the collection of analytical data.
turn off the analytics
You can check the status of the analytic data collection after disabling analytics by executing:
analytics for beer
You can tell whether the analytics are on or off by looking at the output.
Update, Install, or Uninstall Packages
Putting in packages:
Using Homebrew, you can install packages by using the syntax shown below:
Installing a package with brew
As an illustration, type the following to install the tree command and allow a graphical representation of a directory tree:
install tree with brew
The command installs the tree command and updates the Homebrew package list.
Package updates
To guarantee you always have the newest features. You need frequently update both the package manager and the packages loaded using Homebrew.
Run the following command to see a list of packages that need to be updated:
Draught stale
The syntax to update a particular package is as follows:
Update [package name] with brew
Run this command to see if you are running the most recent Homebrew version:
Update on brew
Since we just installed Homebrew, the report indicates that everything is current.
Taking away packages
If you no longer require a piece of software that you had previously installed using Homebrew, you can delete it from your computer using the syntax:
Brew remove '[package name]'
In the aforementioned scenario, the tree package was uninstalled.
How to Remove Homebrew?
To remove Homebrew from your computer, take the following actions:
1: Execute the next command:
Catalina, Big Sur, and Mojave on macOS
-c /bin/bash "Curl -fsSL $(
- https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)”
Mac OS X High Sierra, Sierra, El Capitan, or a previous version:
"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)" in the ruby command line.
2: The system reminds you of the Homebrew files it intends to delete and requests your approval. Press Return after typing y to remove Homebrew from your computer.
Conclusion
You must have Homebrew installed on your PC after completing the instructions in this article. There are many advantages to using homebrew.
It includes hundreds of command-line-based tools, a central repository for a range of software packages, and access to many apps not found in the App Store.