Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Gah. It looks like it doesn't support removing packages. I won't call it a package manager if it can't remove packages.


brew remove <formula>


I've been using homebrew for a few months now and while I love it I still can't figure out how to 'brew remove' packages that have more than one version installed.

For example:

$ brew remove git Error: git has multiple installed versions

I've looked at the (very sparse) 'brew help' and the wiki and still haven't found a solution other than manually deleting the extra version directories.

Am I missing something obvious?


brew's documentation isn't fully baked, but this should do what you want:

  $ brew cleanup git
  Uninstalling /usr/local/Cellar/git/1.6.5.4...
  Uninstalling /usr/local/Cellar/git/1.6.5.7...
  Uninstalling /usr/local/Cellar/git/1.6.6...
Or just "brew cleanup" to clean everything. (That doesn't appear to work with projects built from version control repos, though, like emacs with Cocoa support.)

edit: Maybe you meant that you want to remove the whole thing, i.e., all versions, not just the unused ones. Looks like you have to "cleanup" first, then "remove". That seems like a bug to me.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: