
We can however unlink it by calling the Homebrew API directly: ruby -I/usr/local/Library/Homebrew -rglobal -rkeg -e 'puts Keg.new("/usr/local/Cellar/tomcat/7.0.8").unlink'

It seems the brew command doesn't really like multiple versions of the same formula being installed at the same time and it presently doesn't expose a way to do this other than removing the old version first. If you try to unlink with brew unlink tomcat you'll get Error: tomcat has multiple installed versions. Here's the change I made to move from 7.0.6 to 7.0.8: diff -git a/Library/Formula/tomcat.rb b/Library/Formula/tomcat.rb index 90b3443.bded504 100644 - a/Library/Formula/tomcat.rb +++ b/Library/Formula/tomcat.rb -1,9 +1,9 require 'formula' class Tomcat

Upgrading Tomcat with Homebrew – Jason Codes Jason Codes code & rants of
