Install Helm in specific version with brew - homebrew

I tried:
~ ❯ 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.
Also tried to install from a specific commit hash as several guides online suggested but got this error:
/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)
What am I doing wrong?

Use $ brew search to list all available formulas:
$ brew search helm
helm helm#2 helmfile helmsman
You can install one of the versions from the shown result:
$ brew install helm
or
$ brew install helm#2
From Helm:
Members of the Helm community have contributed a Helm formula build to Homebrew. This formula is generally up to date.

Related

New MacBook Homebrew Install Issue

I have a Macbook Pro that has an M1 Chip that is causing issues trying to install Homebrew. I have followed the steps in this article: https://mac.install.guide/homebrew/3.html but when I get to the Homebrew install and I type brew in the terminal I get this
Example usage:
brew search TEXT|/REGEX/
brew info [FORMULA|CASK...]
brew install FORMULA|CASK...
brew update
brew upgrade [FORMULA|CASK...]
brew uninstall FORMULA|CASK...
brew list [FORMULA|CASK...]
Troubleshooting:
brew config
brew doctor
brew install --verbose --debug FORMULA|CASK
Contributing:
brew create URL [--no-fetch]
brew edit [FORMULA|CASK...]
Further help:
brew commands
brew help [COMMAND]
man brew
https://docs.brew.sh
Shouldn't it tell me what version of Homebrew I have and that it's installed?
I am trying to set up my Homebrew so that I can use it with git. I am trying to do brew install git and brew install git-lfs but I get the below error messages when I try to do that.
fatal: Could not resolve HEAD to a revision
Warning: No available formula with the name "git".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> 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.
Shouldn't it tell me what version of Homebrew I have and that it's installed?
To find the installed version, use the -v option.
% brew -v
Homebrew 3.6.0
Homebrew/homebrew-core (git revision e5722d08e47; last commit 2022-09-09)
Homebrew/homebrew-cask (git revision 0dc06a0f09; last commit 2022-09-09)
fatal: Could not resolve HEAD to a revision
You will need to reinstall, and make sure it uses /opt/homebrew because you are on an M1.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
There shouldn't be any errors displayed when this runs.

MAC : No available formula with the name "brew-cask"

Trying to install brew-cask after tapping caskroom/cask,
brew tap caskroom/cask
brew install brew-cask
But getting error,
$ brew install brew-cask
Updating Homebrew...
Error: No available formula with the name "brew-cask"
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
This similarly named formula was found:
brew-cask-completion ✔
To install it, run:
brew install brew-cask-completion ✔
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
Tried brew cleanup, untapped caskroom/cask and reinstallation of brew-cask but no luck.
I installed, brew-cask-completion using brew install brew-cask-completion. And read somewhere brew-cask is deprecated. So what is the solution. I ignored it and installed the java open sdk. My question is, is it going to be a problem in future if I don't install it?
Thanks in advance!
It happens because of corrupted core installation, actually you will give this error for installing any packages, you should fix the with:
rm -fr $(brew --repo homebrew/core)
Then install what ever you want, for me:
brew intall deno
Try reinstalling it with these commands in this order:
brew uninstall brew-cask
brew untap caskroom/cask
brew tap caskroom/cask
brew install brew-cask

Installing older version of Elasticsearch

Running brew install elasticsearch#2.0.0, I'm getting:
Error: No available formula with the name "elasticsearch#2.0.0"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
==> Searching local taps...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
How do I go about installing elasticsearch#2.0.0 in my Rails App.
Homebrew does not currently support 2.0.0 of Elasticsearch. If you run:
brew search elasticsearch
You will see the currently supported version of Elasticsearch that homebrew allows you to install. At the time of this question, the only version in the 2.x series that is supported by homebrew is 2.4.
If you must have 2.0.0, you can always download it directly and install it yourself. You can just download the version during your install script and run the install commands.
If you must use 2.0.0 and you must user homebrew, you can always create a custom formula. Just run the command:
brew create <url to zip>
Then you modify the resulting ruby file to run the correct install commands (hint: you can copy from the 2.4 formula).

What is the exact command to install yum through brew?

I tried installing yum through brew install command. but it is not working with the message below. What is the problem? I can not find any good materials.
$ brew install "yum"
Error: No available formula with the name "yum"
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.
yum is a package manager for Red Hat Linux. It will not work on macOS. brew is a package manager for macOS
So instead of trying to install yum to install another piece of software, you might want to try to install this software using brew directly. But beware: the package names might not be the same. Use brew search to search for packages in brew, or maybe, even better, try and find specific instructions for macOS for the software you're trying to install.

Why can't brew find a specific known formula?

I'm trying to install bazel on my mac (10.11.5).
I can see that it is available through brew:
http://braumeister.org/formula/bazel
But when I run "brew install bazel", I get this:
Error: No available formula for bazel
Searching formulae...
Searching taps...
Why is this?
In my case, Homebrew was already up-to-date after running brew update and I still received the same error messages as the OP when trying to install xdebug:
$ brew update
Already up-to-date.
$ brew install php70-xdebug
Error: No available formula with the name "php70-xdebug"
Using Mark's suggestion from the comments on OP solved the problem:
$ brew search xdebug
homebrew/php/xdebug-osx homebrew/php/php70-xdebug
So now, running $ brew install homebrew/php/php70-xdebug, Homebrew found and installed the package.
You should update your brews, because it is indeed available. Run
brew update
brew install bazel
and then it should work.

Resources