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
How do I find a list of Homebrew's installable packages?
提问by dnlcrl
回答by Shaun McDonald
brew help
will show you the list of commands that are available.
brew help
将显示可用命令列表。
brew list
will show you the list of installed packages. You can also append formulae, for example brew list postgres
will 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 post
will 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.com或https://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 search
will 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安装节点