multiple side-by-side versions with Homebrew?

前端 未结 3 558
囚心锁ツ
囚心锁ツ 2021-02-03 17:28

Is it possible to install multiple versions side-by-side with Homebrew?

I find myself in a situation needing sbt-0.7.x, sbt-0.10.x and sbt-0.11.0. I\'ve installed both s

3条回答
  •  爱一瞬间的悲伤
    2021-02-03 17:53

    To easily switch between versions of formulae, you can use:

    brew switch  
    

    For example:

    brew switch gradle 3.2.1
    

    To list which versions you have installed try:

    brew list --versions
    

    or:

    brew list  --versions
    

    If you want to get rid of older versions, just use:

    brew cleanup
    

提交回复
热议问题