How to Completely Uninstall Homebrew from Mac with Associated Files

March 04, 2022Ashley Mae

Homebrew is a great app to manage packages on macOS. However, some users intend to remove it from their computer because it is not behaving as they expect, they are no longer using the app, or have another package manager. According to our research, it may be not as simple to uninstall Homebrew on Mac as you thought. You need to remove the configuration and verify files independently. This guide demonstrates the complete how-to.

Uninstall Homebrew

Part 1: How to Uninstall Homebrew Manually

There are several stages to uninstall Homebrew on Mac manually. All of them require somewhat technical skills since they work through command lines. We demonstrate the workflow in detail below.

Stage 1: Uninstall Homebrew

Homebrew offers the uninstall script that you can run remotely. If you are not sure, visit the Homebrew GitHub repository to check it online. Although you uninstall Homebrew on Mac, your machine must connect to an active internet connection.

Uninstall Script
Step 1:
Open the Finder app, go to the Applications folder, find and open the Terminal.
Step 2:
Copy and paste /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)" into Terminal, and press the Return key on your keyboard.
Step 3:
Now, you will see a list of files that are ready to be removed. Enter y when prompted and enter the password that you use to log in to your Mac.
Step 4:
When file removal is done, you will see the list. It may take a while, so you must be patient.

Stage 2: Remove Configuration

Running uninstall script is the easiest part of Homebrew removal on Mac. After that, you also need to remove Homebrew shell configuration information from the proper path too.

Step 1:
Enter cat ~/.zprofile in Terminal, and press the Return key. Then you will the command configuration commands.

Tip: If the zprofile does not contain the brew shellenv command, check the other setup files, such as ~/.zshenv, ~/.zshrc, or ~/.zlogin.

Step 2:
Next, remove the line that contains brew shellenv with a text editor.

Note: If you do not delete the configuration when uninstalling Homebrew, you will get a warning message every time you run a terminal session.

Stage 3: Delete Residual Files

The last stage of uninstalling Homebrew on Mac is removing the remaining files. When you finish stage 1, you have deleted most associated files. However, that is not all. Here are steps to get rid of all of them.

Brew Version
Step 1:
Run the Finder app, go to the Go menu, and choose Go to Folder.
Step 2:
Enter /opt/homebrew/additional/path/here into the box if you are using an Apple Silicon Mac. For Intel Mac, type in /usr/local/additional/path/here. Click the GO button to open the folder.
Step 3:
Next, drag and drop all files in the folder into your Trash. Then empty the Trash folder.
Step 4:
To confirm, enter brew –version in a Terminal window. If you get a message saying No such file or directory, you are successful in uninstalling Homebrew from Mac.

Part 2: Permanently Uninstall Homebrew on Mac

It cannot be denied that the manual way to uninstall Homebrew is pretty difficult. The good news is that a few apps can simplify the procedure, such as Aiseesoft Mac Cleaner. It supports one-click uninstalling.

Mac Cleaner

161,522 Downloads

Aiseesoft Mac Cleaner – Best Homebrew Uninstaller

  • 1. Remove Homebrew and associated files with one click.
  • 2. Permanently uninstall apps on Mac quickly.
  • 3. Include a wide range of bonus tools, like file deletion.
  • 4. Available to almost all Mac computers and laptops.

How to Uninstall Homebrew on Mac with One Click

Step 1:
Install Homebrew uninstaller

Fire up the best Homebrew uninstaller after you install it on your Mac. Click the Toolkit button in the home interface, and choose Uninstall. If you want to learn the status of your CPU and storage, click the Status button.

Mac Cleaner toolkit
Step 2:
Scan Homebrew on Mac

Click the Scan button to begin looking for Homebrew and other apps on your hard drive. It takes a while depending on how many apps that you have installed on your machine. When it is done, click the View button to move on.

Mac Cleaner Uninstall
Step 3:
Remove Homebrew

Browse the apps in the middle panel until you find Homebrew on the list. Select it and you will get all associated files and the app on the right side. Check the box next to Select All at the top of the window, and click the Clean button at the bottom right corner. When prompted, enter your password to confirm it. Wait for the process to finish and Homebrew is uninstalled on Mac completely.

Uninstall App

Part 3: FAQs about Uninstalling Homebrew

Is Homebrew safe for Mac?

Generally speaking, Homebrew is safe if you know what you are doing and if you are more skilled to install the app on your Mac. If not, we suggest you not try this app since it is complicated to install and uninstall Homebrew.

Is Homebrew necessary for Mac?

It depends on your situation. Homebrew is the preferred package manager for macOS. With the app, you can benefit from tons of command-line tools to automate your work. However, it is very hard for average people to learn the command lines.

Why should you uninstall Homebrew?

Homebrew is difficult to use. Plus, some users encounter a lot of problems when using the app. The common errors include:
1. Lack of command-line tools.
2. Upgrade errors happen.
3. Homebrew keeps crashing after upgrading Mac.
4.Untracked working tree files.
5. No file location or directory.

Conclusion

Now, you should understand how to uninstall Homebrew on Mac manually or completely. If you are tech-savvy, you can follow our guide to executing the command lines to get rid of the package manager app. For average people, we suggest you try Aiseesoft Mac Cleaner. It is not only easy to use, but also can remove Homebrew, configuration, and associated files together. If you encounter other problems related to this topic, please feel free to leave a message below this post and we will reply with it as soon as possible.

What do you think of this post?

Excellent

Rating: 4.9 / 5 (based on 322 votes)Follow Us on

Disqus IconLeave your comment and join our discussion
Mac Cleaner – Space Cleaner box

Mac Cleaner is the best Mac space cleaning software to remove junk files, memory, virus, adware, malware, duplicated photos, and uninstall applications to free up storage and speed up Mac performance.

Back to top