How To Uninstall Homebrew From Mac

Homebrew is an open-source software package management system that drastically simplifies the installation of software on macOS.

Using Homebrew you can effortlessly access open-source community resources.

However, If you are no longer using Homebrew and want to uninstall it then the step-by-step guide for Uninstalling Homebrew On MacOS shared in this article will help you out.

How To Uninstall Homebrew From Mac OS

To Uninstall Homebrew on your macOS computer, you have to simply run the uninstall script from the Homebrew Repository. Here’s how you can do that within a few minutes,

STEP 1: First, copy the uninstall homebrew script which is,

/bin/bash -c “$(curl -fsSL”

You can also find this script on the Homebrew GitHub Page under the Uninstall Homebrew section.

STEP 2: Next, open Terminal by using command+space and typing terminal in the search bar.


STEP 3: Now simply paste the command that we copied in the first step and press Enter.


STEP 4: You will now be greeted by a pop-up asking you, “Are you sure you want to uninstall Homebrew? This will remove your installed packages!”, Since we do want to delete homebrew go ahead and type Y, and once that’s done press Enter.


STEP 5: The script will now ask you to enter your password, so go ahead and do that by typing in your macOS password.


Within a few seconds, homebrew will be uninstalled from your PC. That said, you will also see the alert stating that “The following possible Homebrew files were not deleted:” followed by a list of some homebrew files remaining on your device. To get rid of these files follow these simple steps,


STEP 1: While in the Terminal, type open /usr/local and hit Enter.

STEP 2: You will now see all of the contents of the directory and even the homebrew folder should be there.


STEP 3: Right-click on the homebrew folder and select Move to Bin. Later you can empty your bin.

And that’s pretty much it homebrew will now be completely removed from your MacBook, Mac Mini, iMac, Mac Pro, or Mac Studio.

Uninstall Homebrew From Mac OS El Capitan And Earlier

The aforementioned method works flawlessly for uninstalling Homebrew in MacOS Sonoma, MacOS Ventura, MacOS Monterey, Catalina, macOS Big Sur, and MacOS Mojave.

However, if you have a PC running on MacOS High Sierra, Sierra, El Capitan, and earlier you just have to change the script shared in the first step to,

ruby -e “$(curl -fsSL”



So this was a detailed tutorial on How To Uninstall Homebrew From Mac.

The solution shared in this article works flawlessly on every modern and mainstream version of macOS.

Consequently, even if you are on macOS Sonoma you can still uninstall homebrew from your MacBook.

Leave a Comment