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:
Calling Brew Cask Install is Disabled, to download and run the Homebrew installation script on your Mac, follow the procedures listed below.
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:
Installing Xcode-select
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.
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:
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.
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.
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.
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.
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 $(
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.
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.