I have already installed version 6.1 of elasticsearch and I want to update it to aspecific version 6.8: how I can do that easy on my mac ?
I have already installed version 6.1 of elasticsearch
Homebrew can’t update to a specific version unless it has a formula (= package specification) for it. Regarding ElasticSearch, it has the following formulae:
$ brew search elasticsearch
==> Formulae
elasticsearch
elasticsearch#2.4
elasticsearch#5.6
The elasticsearch formula is currently installing ES 6.8.1:
$ brew info elasticsearch
elasticsearch: stable 6.8.1, HEAD
Distributed search & analytics engine
...
It means that if you want ElasticSearch 6.8, you just need to brew install elasticsearch.
Related
I am trying to upgrade my Dart SDK from 2.18.7 to 2.19.0 using homebrew formula brew upgrade dart.
However, the command always returns the same result
Warning: dart-lang/dart/dart 2.18.7 already installed.
brew info dart command shows:
==> dart-lang/dart/dart: stable 2.18.7, HEAD
SDK
https://dart.dev
Conflicts with:
dart-beta (because dart-beta ships the same binaries)
/usr/local/Cellar/dart/2.18.7 (921 files, 497MB) *
Built from source on 2023-01-29 at 02:33:36
From: https://github.com/dart-lang/homebrew-dart/blob/HEAD/Formula/dart.rb
==> Options
--HEAD
Install HEAD version
==> Caveats
Please note the path to the Dart SDK:
/usr/local/opt/dart/libexec
I also have tried:
brew uinstall dart<br>
brew install dart<br>
brew upgrade dart
brew upgrade dart --devel --force
resulting `Error: invalid option: --devel`
Please, kindly suggest me any other solutions that could help.
The issue occurred as the homebrew formula for dart 2.18.7 is missing in the homebrew core formula commit history:
https://github.com/Homebrew/homebrew-core/commits/master/Formula/dart-sdk.rb
However, my dart version upgraded to 2.18.7 from 2.18.6 by an unintentional brew upgrade command resulting the issue.
I installed Kibana on myb mac using brew. The kibana version is too recent for my ES cluster so I was going to uninstall and reinstall an older version.
When I issue this command:
brew uninstall kibana
I get the following error:
Error: No such keg: /usr/local/Cellar/kibana
I'm absolutely positive I installed using "brew install kibana" Is there anything I can do to uninstall kibana so I can reinstall an older version?
If you list directories inside Cellar folder, you will find a folder named kibana-full. You need to run
brew uninstall kibana-full
I would like to install 2.6.X but cannot find documentation on how to specify a formula version. Brew is only installing the latest version of the formula.
I'm using the following versions of brew
Homebrew 1.8.6
Homebrew/homebrew-core (git revision 5ea559; last commit 2018-12-18)
Homebrew/homebrew-cask (git revision 4144b74; last commit 2018-12-18)
I'm upgrading from 2.2.1 and want to be pinned to 2.6.X
ls /usr/local/Cellar/ansible
2.2.1.0_2 2.3.1.0 2.7.5
brew search ansible
==> Formulae
ansible ✔ ansible-cmdb
ansible-lint ansible#1.9
ansible#2.0 terraform-provisioner-ansible
==> Casks
ansible-dk
brew install ansible
ansible --version
ansible 2.7.5
If someone could point me to the correct docs at https://docs.brew.sh/ to both list all available versions and to install specific versions that would be awesome.
Go to the directory containing formulas:
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
Look at the history of the ansible formula
git log -- ansible.rb
Select the commit where the version you are interested in is and checkout this formula:
git checkout f9466d14ee6e9fa7a -- ansible.rb
Install that formula:
HOMEBREW_NO_AUTO_UPDATE=1 brew install ansible
Check the installation of ansible:
ansible --version
Pin this version of the formula to avoid upgrade
brew pin ansible
That's it, an I'm not sure that this is in the documentation.
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).
I've noticed this happening a few times but this most recent instance is with wp-cli Running brew upgrade wp-cli does not download the latest version.
$ brew upgrade wp-cli
Error: homebrew/php/wp-cli 0.20.1 already installed
$ brew info wp-cli
homebrew/php/wp-cli: stable 0.20.1, HEAD
A set of command-line tools for managing WordPress installations.
http://wp-cli.org/
/usr/local/Cellar/wp-cli/0.20.1 (2635 files, 15M) *
Built from source
From: https://github.com/Homebrew/homebrew-php/blob/master/Formula/wp-cli.rb
Note the version is 0.20.1. When I check the formula repo, I see,
head "https://github.com/wp-cli/wp-cli.git"
When I check that repo, I see that the version in the master branch is 0.24.0. brew info and wp --version both return 0.20.1. Why isnt Homebrew grabbing the latest version? How do I force it to get the latest?
You'll need to run brew update first to force brew to update its list of formulae.