【问题标题】:In homebrew, how can I know xargs belongs to the findutil package?在自制软件中,我怎么知道 xargs 属于 findutil 包?
【发布时间】:2017-01-17 09:46:06
【问题描述】:

我在 Mac 上,不想使用内置的 xargs 实用程序。因为它与 gnu xargs 不同。在谷歌周围我发现xargs 属于自制软件中的findutils 包,我可以使用简单的命令brew install findutils 安装它。我的问题是,有没有更简单的方法来识别xargs 属于findutils

谢谢。

【问题讨论】:

  • which xargs 将显示路径。 mac上的/usr/bin/xargs是系统bsd。您可以将其添加到您的路径以确保来自 brew findutils 的 xargs:PATH="$(brew --prefix findutils)/libexec/gnubin:$PATH"; export PATH
  • 从今天开始,您可以在 findutils 中找到 xargs,方法是在 google 上找到此问题作为最高结果。

标签: linux package homebrew gnu-findutils


【解决方案1】:

brew search --desc xargs

会给出结果

findutils: Collection of GNU find, xargs, and locate

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-21
    • 2023-02-10
    • 1970-01-01
    相关资源
    最近更新 更多