Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 findutils package in homebrew and I can install it with a simple command brew install findutils. My question is, it there a simpler way to identify xargs belongs to findutils?

Thanks.

like image 217
Just a learner Avatar asked Sep 09 '16 09:09

Just a learner


1 Answers

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.

like image 75
Vortexfive Avatar answered Nov 07 '22 02:11

Vortexfive