Skip to content

Instantly share code, notes, and snippets.

@sxua
Created November 20, 2011 00:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sxua/1379571 to your computer and use it in GitHub Desktop.
Save sxua/1379571 to your computer and use it in GitHub Desktop.
Remove Homebrew's "has multiple installed versions"
#!/bin/bash
ruby -I/usr/local/Library/Homebrew -rglobal -rkeg -e 'k = Keg.new("/usr/local/Cellar/#{pkg}/#{version}"); puts k.unlink; k.uninstall'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment