list 如何找到 Homebrew 的可安装软件包列表?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8833230/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-11 01:46:05  来源:igfitidea点击:

How do I find a list of Homebrew's installable packages?

macoslistinstallpackageshomebrew

提问by dnlcrl

Recently I installed Brew. How can I retrieve a list of available brew packages to install?

最近我安装了Brew。如何检索要安装的可用 brew 包列表?

回答by Shaun McDonald

brew helpwill show you the list of commands that are available.

brew help将显示可用命令列表。

brew listwill show you the list of installed packages. You can also append formulae, for example brew list postgreswill tell you of files installed by postgres (providing it is indeed installed).

brew list将显示已安装软件包的列表。您还可以附加公式,例如brew list postgres会告诉您 postgres 安装的文件(前提是它确实已安装)。

brew search <search term>will list the possible packages that you can install. brew search postwill return multiple packages that are available to install that have post in their name.

brew search <search term>将列出您可以安装的可能的软件包。brew search post将返回多个可安装的包,它们的名称中有 post。

brew info <package name>will display some basic information about the package in question.

brew info <package name>将显示有关包的一些基本信息。

You can also search http://searchbrew.comor https://brewformulas.org(both sites do basically the same thing)

您也可以搜索http://searchbrew.comhttps://brewformulas.org(这两个站点的功能基本相同)

回答by E. B. Berg

From the man page:

从手册页:

search, -S text|/text/
Perform a substring search of formula names for text. If text is surrounded with slashes,
then it is interpreted as a regular expression. If no search term is given,
all available formula are displayed.
search, -S text|/text/
Perform a substring search of formula names for text. If text is surrounded with slashes,
then it is interpreted as a regular expression. If no search term is given,
all available formula are displayed.

For your purposes, brew searchwill suffice.

对于您的目的,brew search就足够了。

回答by Sumanth Badadal

Please use Homebrew Formulae page to see the list of installable packages. https://formulae.brew.sh/formula/

请使用 Homebrew Formulas 页面查看可安装包的列表。 https://formulae.brew.sh/formula/

To install any package => command to use is :

要安装任何包 => 要使用的命令是:

brew install node

brew安装节点