For example, when I run

brew search octave

I see:

homebrew/science/octave                Caskroom/cask/octave

I don't know which of these to install so I want to check the version of these programs. Is there any way to get it without installing?

3 Answers 3


You can get information on each of the hits:

brew info octave
brew info --cask evernote

In both cases, these may require you to "tap" the containing levels, but it gives you the command to run for each as needed.

From the first package information, you should get an info URL of https://github.com/Homebrew/homebrew-science/blob/master/octave.rb and then could inspect the source of that octave installation. Repeat for the cask and then you can decide or not to install one or the other.


You have two versions because one is command-line and the other is a Graphical User Interface (GUI). You can check their versions with the commands below. I use libreoffice as octave is no longer a cask:

$ brew info octave
octave: stable 5.1.0 (bottled), HEAD
High-level interpreted language for numerical computing
$ brew cask info libreoffice
libreoffice: 6.3.4

This solution works immediately and avoids "tapping" and downloading a repo (which as of January 2020 requires entering a Github username and password).


Check version via brew info <package_name> command, cask command is not valid any more. If you know you are searching for a GUI app, you can specify brew info --cask <package_name>.


$ brew info --cask libreoffice
libreoffice: 7.0.4             <----- VERSION COMES HERE
Not installed
From: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/libreoffice.rb
==> Name
==> Description
Free cross-platform office suite

P.S. More simple way I tried is to google like evernote version brew, and on Brew page there's info.

P.P.S. Could anyone open it up how to check JSON package directly from formulae/cask name, e.g. this?

  • 1
    You can run the json file through jq to extract the version number: curl -s https://formulae.brew.sh/api/cask/evernote.json | jq -r .version
    – nohillside
    Commented Jan 17, 2021 at 14:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .