Merge pull request #38807 from aljoscha/update-flink-1.8.0 apache-flink 1.8.0
可以看到,apache-flink 1.9.0 的 commit hash id 为 1cfab9bd5691406e475341014b8cd52dc0b351c8,我们要记住这个 id。
安装指定版本
根据上面的 id,即可安装对应的软件版本
1 2 3 4 5 6 7 8 9
➜ ~ brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/1cfab9bd5691406e475341014b8cd52dc0b351c8/Formula/apache-flink.rb Updating Homebrew... Warning: Calling Installation of apache-flink from a GitHub commit URL is deprecated! Use 'brew extract apache-flink' to stable tap on GitHub instead. ######################################################################## 100.0% ==> Downloading https://archive.apache.org/dist/flink/flink-1.9.0/flink-1.9.0-bin-scala_2.11.tgz ######################################################################## 100.0% Warning: apache-flink 1.11.1 is available and more recent than version 1.9.0. 🍺 /usr/local/Cellar/apache-flink/1.9.0: 161 files, 276.9MB, built in 4 seconds Removing: /Users/Library/Caches/Homebrew/apache-flink--1.9.0.tgz... (243.4MB)
这里再介绍另外一种安装方法,得到 id 后,进入 homebrew-core 项目的根目录,checkout id 对应的分支,然后进入 Formula 文件夹,通过 brew install *.rb 也是可行的。
1 2 3 4 5 6 7
➜ homebrew-core git:(master) git checkout 1cfab9bd5691406e475341014b8cd52dc0b351c8 homebrew-core git:(1cfab9bd56) cd Formula ➜ Formula git:(1cfab9bd56) brew install apache-flink.rb ==> Downloading https://archive.apache.org/dist/flink/flink-1.9.0/flink-1.9.0-bin-scala_2.11.tgz Warning: apache-flink 1.11.1 is available and more recent than version 1.9.0. 🍺 /usr/local/Cellar/apache-flink/1.9.0: 161 files, 276.9MB, built in 3 seconds Removing: /Users/Library/Caches/Homebrew/apache-flink--1.9.0.tgz... (243.4MB)