Mac OS X: How to rollback to 4.6.3

HOMEBREW question:
I ran “brew reinstall grafana” command and it overrides my 4.3.x,
How to rollback to 4.6.3 after overriding with version 5.0.4?
Version 4.x is running on a production server, in order to support it, need to work locally and re/design dashboards.

Please help!

Maybe with brew switch?

Thank Daniellee, it is too old post describing deprecated feature though.

But I found another way to install in parallel to last version:

Grafana 4.6.3:
brew install https://github.com/Homebrew/homebrew-core/blob/5af6f0e04af8d6156b5dd66b62855fd6f7a69744/Formula/grafana.rb

If it not works right away, just download grafana.rb file to your local and run:
brew install /path_to_rb_file/grafana.rb

Once it’s more than one version installed, it’s easy to switch between them,
If 5.0.4 is currently linked and running:

brew services stop grafana
brew switch grafana 4.6.3
brew services start grafana

And then back to 5.0.4:

brew services stop grafana
brew switch grafana 5.0.4
brew services start grafana

1 Like