使用 brew 在特定版本中安装 Helm

Install Helm in specific version with brew

我试过了:

~ ❯ brew install helm@3.4.2                                                                                                        at 11:05:02
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "helm@3.4.2".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

还尝试按照一些在线指南的建议从特定的提交哈希安装,但出现此错误:

/usr/local/Homebrew/Library/Homebrew/formulary.rb:227:in `load_file': Invalid usage: Installation of helm from a GitHub commit URL is unsupported! 'brew extract helm' to stable tap on GitHub instead. (UsageError)

我做错了什么?

使用$ brew search列出所有可用的公式:

$ brew search helm
helm  helm@2  helmfile  helmsman

您可以从显示的结果中安装其中一个版本:

$ brew install helm
or 
$ brew install helm@2

来自Helm

Members of the Helm community have contributed a Helm formula build to Homebrew. This formula is generally up to date.