Specifically kubernetes-cli
. I have 1.12.0 installed. I need 1.11.x, but I don't have that installed.
I've reviewed and tried every answer in this thread and nothing worked: Homebrew install specific version of formula?
I've tried brew search
but there are no tapped versions:
~ brew search kubernetes-cli
==> Formulae
kubernetes-cli ✔
I've tried brew versions
but that command has been removed:
~ brew versions
Error: Unknown command: versions
I've tried brew install [email protected]
and .1 and .2:
~ brew install [email protected]
Error: No available formula with the name "[email protected]"
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
brew switch
requires that I have the older version installed, which I don't.
~ brew switch kubernetes-cli 1.11.0
Error: kubernetes-cli does not have a version "1.11.0" in the Cellar.
kubernetes-cli installed versions: 1.12.0
If you can't use the web interface, you can clone the repo and do it locally: use git log master -- Formula/PACKAGENAME. rb to get the commit history, check out the correct commit, and then run brew install Formula/PACKAGENAME. rb to install it. I think you need brew unlink before brew install of other version.
Command Line USAGE: swiftlint <subcommand> OPTIONS: --version Show the version.
brew tap adds more repositories to the list of formulae that brew tracks, updates, and installs from. By default, tap assumes that the repositories come from GitHub, but the command isn't limited to any one location.
The packages for which the symlinking step is skipped are called keg-only. If you want to override Homebrew's decision not to symlink a package into /usr/local , you can modify your PATH variable as in the suggestion from brew that you've posted.
Formula
folderkubernetes-cli.rb
filehttps://raw.githubusercontent.com/Homebrew/homebrew-core/3e8f5503dde7069c5ff49b82d5e1576e6ebe3a5d/Formula/kubernetes-cli.rb
brew install <raw_link>
I dont have enough rep to make a comment on the answer that helped me. So writing here to be more specific about point 2 from @urpalreloaded
brew search [email protected]
brew unlink kubernetes-cli
brew install <raw-link>
FWIW, I think brew doesnt keep versions because it will make the repo too big? This workaround is inconvenient and perhaps they could find a way around this issue on their end?
The above answers were really useful but when I tried to install Carthage 0.30.1 on my Sierra 10.12.6 machine I got a SHA256 mismatch error:
$ brew install https://raw.githubusercontent.com/ilovezfs/homebrew-core/8c93668a451087611b2247cafe02ad6f867daed6/Formula/carthage.rb --force-bottle
######################################################################## 100.0%
Warning: carthage 0.32.0 is available and more recent than version 0.30.1.
==> Downloading https://homebrew.bintray.com/bottles/carthage-0.30.1.sierra.bottle.tar.gz
######################################################################## 100.0%
Error: SHA256 mismatch
and then it failed to build from source due to latest Sierra Xcode not supporting the new Xcode build system.
What worked for me was to directly install from the bottle (the url is shown in first brew install <raw url>
output):
brew install https://homebrew.bintray.com/bottles/carthage-0.30.1.sierra.bottle.tar.gz
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With