Find the commit history of the desired software and version. e.g. I need to switch from docker version 1.4.1 to 1.3.3 https://github.com/Homebrew/homebrew-core/commits/master/Formula/docker.rb

  • open the repository of the commit in the history
  • raw
  • Copy the URL from address bar
  • brew install URL
  • brew switch docker 1.3.3
  • Switch back to docker 1.4.1 brew switch docker 1.4.1