Find binary name of formulae #450
-
In short: Is there a way to get the name of the binary a formula installs? Hello! I'm writing a program that does what On most Linux distros, when a command is not found, a helpful message showing what package manager commands can be run to install it are shown. This is not available in macOS, presumably because it lacks a default package manager. Most developers however use (the fantastic) Homebrew. For this reason, I made a program that is triggered when a command is not found and looks for Homebrew formulae matching the name of the command. It does this by simply making a list of the names of all the Ruby scripts (found in However, there is one shortcoming. The program relies on formulae names, and not the names of the binaries they install. I was not able to find any way to get the binary name (except the inefficient way of searching for |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
There isn't and even |
Beta Was this translation helpful? Give feedback.
-
It sounds like you're looking for https://github.com/Homebrew/homebrew-command-not-found |
Beta Was this translation helpful? Give feedback.
There isn't and even
bin.install
won't help you since that is only used if upstream doesn't provide a makefile or something similar to move the files tobin