Table of Contents
This article will show you how to Install and Uninstall Homebrew on Mac. Using Homebrew, you can uninstall packages. The Homebrew command is the package manager that downloads all the UNIX and open-source utilities you might want. It is the easiest way to run them on both Linux and MacOS. It has simple functions like Homebrew Cask.
On macOS, Homebrew is a great way to handle packages. But there may come a time when you want to get rid of it for good. You might need to do a clean update again, or there could be something else going on. Anyway, it’s not hard to get rid of Homebrew. Homebrew is a package manager that works with both Linux and the Mac OS.
Homebrew is an open-source programme that lets you handle the system’s packages in ways that aren’t possible by default. If you’ve ever thought how to install command-line tools like telnet, cask, htop, wget, nmap, etc. If you want to know more information about this visit official Apple support site.
How to Install and Uninstall Homebrew on Mac
Installing Homebrew on macOS
Homebrew will put all of the packages into their own directories, and their files will then be linked to /usr/local using symbolic links. It won’t put the files anywhere else than in its prefix. A Homebrew programme can be put anywhere the user wants. Users will find it easy to run software like Ruby, Git, and Python once Homebrew is set up.
- Open the Safari browser and go to the Homebrew site. On the home page, you will get the install command. Copy the command from there.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Hold the Command key and press the Space Bar to open the Spotlight. Now search for the Terminal and open it.
- Paste the following command that you just copied from the site and press the Enter key. Provide the password and press the Enter key to confirm the installation.
- You will get the successfully installed message. You can also type the following command to check the installed version of Homebrew on your system.
Uninstalling Homebrew on macOS
How to uninstall Homebrew is similar to how it was put in place. You can also use the Terminal on your machine to do it. The only change between the two is the name of the script. The “install.sh” is in the command for the “install” method, and the “uninstall.sh” is in the command for the “uninstall” method. This will run the uninstall tool in your terminal to get rid of Homebrew. Here are the exact steps you can take:
- Open the Safari browser and then go to the Homebrew site. Now copy the installation command that is shown on the home page.
- Press the Command + Space Bar key to open the Spotlight. Now search for Terminal and press the Enter key.
- Now paste the command (that you copied in the first step) in the Terminal. However, change the “install.sh” to “uninstall.sh” as shown below:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
- Type “y” and press Enter to confirm the uninstalling. Then, provide the password to confirm this operation as an admin.
- It will show the uninstalled message and also show the possible Homebrew files that were not deleted.
- For confirmation, you can type the following command to check if Homebrew is still available or not.
brew –version
Homebrew is often one of the first programmes a developer puts on a macOS computer. It has a package management interface like Linux, which makes it easy to install and handle software. Most of the time, people use install and update when they use brew.
What is Homebrew?
Homebrew, or “brew,” is a free and open-source package manager that lets macOS users add apps and software as they wish. It has been suggested because it is easy to use and saves time and effort. “The missing package manager for macOS” is a popular way to describe it.
It’s pretty famous to be able to use the most recent version of software on your Mac. You can simply add formulae packages from Homebrew’s core public repository. Also, the cask (brew-cask) is an application that gives you more software packages and binary apps that you can run from the command line.