在自制软件中,我怎么知道 xargs 属于 findutil 包?

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

我正在使用 mac,我不想使用内置的 xargs 实用程序。因为它与 gnu xargs 不同。在 google 之后我发现 xargs 属于 homebrew 中的 findutils 包,我可以用一个简单的命令 brew install findutils 安装它。我的问题是,是否有更简单的方法来识别 xargs 属于 findutils?

谢谢。

brew search --desc xargs

会给出结果

findutils: Collection of GNU find, xargs, and locate

需要 --desc 选项才能在描述中搜索。 它不会在每个包提供的文件列表中搜索。我相信这可能是不可能的,因为 brew 的公式不包括这个文件列表。