Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove all versions of a formula with brew

Tags:

homebrew

$ brew remove hadoop
Error: hadoop has multiple installed versions

I can not seem to find a way how to remove all the versions (they are 1.0.4 and 1.1.2).

like image 308
ddinchev Avatar asked Apr 01 '13 09:04

ddinchev


People also ask

What does brew Autoremove do?

The autoremove command removes all the hanging, no longer needed packages from your computer. So say goodbye to unneeded dependencies and messy brew list output. ~ brew help autoremove Uninstall formulae that were only installed as a dependency of another formula and are now no longer needed.

How do you remove a brew tap?

The brew tap command You can install and uninstall them with brew [un]install , and the formulae are automatically updated when you run brew update .

What does keg only mean?

What does “keg-only” mean? It means the formula is installed only into the Cellar and is not linked into the default prefix. This means most tools will not find it. You can see why a formula was installed as keg-only, and instructions for including it in your PATH , by running brew info <formula> .


1 Answers

This also seems to work:

brew remove --force hadoop  
like image 162
Jonas Geiregat Avatar answered Oct 15 '22 18:10

Jonas Geiregat