Ogrish Man Ogrish Man - 2 months ago 12
Linux Question

In homebrew, how can I know xargs belongs to the findutil package?

I'm on a mac and I don't want to use the builtin

xargs
utility. Because it's different with the gnu
xargs
. After google around I found
xargs
belongs to the
findutil
package in homebrew and I can install it with a simple command
brew install findutil
. My question is, it there a simpler way to identify
xargs
belongs to
findutil
?

Thanks.

Answer

brew search --desc xargs

will give the result

findutils: Collection of GNU find, xargs, and locate

The --desc option is required to search in the descriptions. It does not search in the list of files provided by each package. I believe this may be impossible because brew's formula don't include this list of files.

Comments