Some Homebrew formulas have names that do not correspond with any of the installed commands (e.g., coreutils
, speech-tools
), other formulas provide an command that matches up with the name, but also provide others alongside it (e.g., lua
).
Is there a simple way to determine what commands are associated with a given formula? Ideally as a brew <arg>
command before installing, but even a shell script I could use post-install would help.
I thought I might be able to figure this info out with a brew link --dry-run <formula>
, but that typically just gives me a warning that the formula is already linked (even with --overwrite
or --force
added to the command). I don't want to have to unlink each time I want to see the commands, so this route doesn't seem helpful.