How to create a homemade bottle for the old version on the new macOS?
I successfully put together a bottle of zsh 5.1.1 on macOS Sierra. Here's how:
First you need to download all the commits from the homebrew-core repository, because by default it is a shallow repository (not all commits are present).
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
git fetch --unshallow
Then you need to select the latest zsh 5.1.1 commit with
brew log zsh
Here is the commit 1a4461ad2a0f1bc7074d9817d, 1a4461ad2a0f1bc7074d9817dwith the zsh formula for this commit
git checkout 1a4461ad2a0f1bc7074d9817d -- Formula/zsh.rb
Install zsh with --build-bottle
brew install
and build a bottle
brew bottle zsh
zsh-5.1.1.sierra.bottle.1.tar.gz
zsh.rb
git checkout -- Formula/zsh.rb
/usr/local/Cellar,
tar xzvf zsh-5.1.1.sierra.bottle.1.tar.gz
brew link zsh
== , ==
bintray.com. Bintray - REST API. brew install, , . zsh 5.1.1 : https://bintray.com/homebrew/bottles/zsh/5.1.1#files. , yosemite, mavericks el capitan, sierra. github zsh-5.1.1.