Find available packages on Mac using brew
$ brew search [package name] $ brew search lua lua lua51 luabind luajit homebrew/emacs/lua-mode homebrew/nginx/lua-nginx-module homebrew/versions/lua53
Get info about a specific package using brew
$ brew info lua lua: stable 5.2.4 (bottled) Powerful, lightweight programming language http://www.lua.org/ Not installed From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/lua.rb ==> Options --universal Build a universal binary --with-completion Enables advanced readline support --without-luarocks Don't build with Luarocks support embedded --without-sigaction Revert to ANSI signal instead of improved POSIX sigaction ==> Caveats Please be aware due to the way Luarocks is designed any binaries installed via Luarocks-5.2 AND 5.1 will overwrite each other in /usr/local/bin. This is, for now, unavoidable. If this is troublesome for you, you can build rocks with the `--tree=` command to a special, non-conflicting location and then add that to your `$PATH`.
Note that package does not have to be installed for finding info.
Find if newer brew package is available
In case you have package (lua) already installed you will see info about installed version also as shown below. Then you can compare the two versions and see if there is a newer version available.
$ brew info lua lua: stable 5.2.4 (bottled) Powerful, lightweight programming language http://www.lua.org/ /usr/local/Cellar/lua/5.2.4_1 (81 files, 1.1M) * Poured from bottle From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/lua.rb ==> Options --universal Build a universal binary --with-completion Enables advanced readline support --without-luarocks Don't build with Luarocks support embedded --without-sigaction Revert to ANSI signal instead of improved POSIX sigaction ==> Caveats Please be aware due to the way Luarocks is designed any binaries installed via Luarocks-5.2 AND 5.1 will overwrite each other in /usr/local/bin. This is, for now, unavoidable. If this is troublesome for you, you can build rocks with the `--tree=` command to a special, non-conflicting location and then add that to your `$PATH`.