Can you install disabled Homebrew packages? - maven

> brew install maven#3.5
Error: maven#3.5 has been disabled because it is not maintained upstream!
I don't want to have to install Maven 3.5, but I need to install Maven 3.5. Can I force Homebrew to install this package it clearly knows about?

You can edit the formula with:
brew edit maven#3.5
Remove the line:
disable! date: "2022-07-31", because: :unmaintained
And install it with:
brew install maven#3.5

Related

Assign dependencies python version while brew installing

New for homebrew
Now want to install autojump via brew install autojump, which need to install python#3.9 as denpendency. I already have python#3.8 installed via brew and don't want an another version.
python#3.8 also satisfy autojump from it's homgpage
Impossible, that's not how Homebrew works.
Installing autojump with homebrew is basically
Creating a virtual environment with Python#3.9 (Homebrew always chooses the latest Python)
Install autojump package in that environment.
Unless you modify the autojump homebrew formula, You can't reuse python#3.8.
You can try the following
brew install autojump --ignore-dependencies

When brew does not have latest package version

How do I force brew to install latest version of neovim (ver 0.5.0) when brew's formula only has 0.4.3?
I have tried:
brew update
brew upgrade neovim
And it says: Warning: neovim 0.4.3 already installed
I went brew's git repo and checked on neovim formula. Brew has neovim's 0.4.3, not 0.5.0. So brew update/upgrade is not going to help. https://github.com/Homebrew/homebrew-core/blob/master/Formula/neovim.rb
I'm thinking of just downloading neovim from neovim repo and installing it manually, but I'm afraid I'll have to manage updates and dependencies if I do this manual install.
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim-macos.tar.gz
tar xzf nvim-macos.tar.gz
./nvim-osx64/bin/nvim
What should I do?
I fixed this with the following steps:
1) Unlink old neovim version:
brew unlink neovim ... and 2)
Install pointing to head:
brew install --HEAD neovim
... This installed neovim 0.5.0.
According to the brew doc, brew install --HEAD will install the master branch of the package. For neovim, it means that the latest version of neovim will be built for you, which may not be stable enough or even compile.
I suggest you install the nightly binary version of neovim. The best way to get the nightly version is to download from the binary release. No dependency is required to install if you download the binary release.
If you don't want to do this manually, you can write a bash script to automate this.

How to install Qt 5.6.1-1 via homebrew?

When you run brew install qt5 you'll get the latest version (right now that's 5.7.0). A week ago or so, when I ran this command version 5.6.1-1 was installed.
Now I need to install this 5.6.1-1 version again on another machine. How can I do this via brew? (trying to avoid the long compile time)
A brew search qt5 doesn't show this previous release:
$ brew search qt5
pyqt5 qt5 ✔
homebrew/versions/qt52 homebrew/versions/qt55
The qt5 formula resides here, in Github and by backtracking to a previous commit you can find a previous version of the formula. The 5.6.1-1 version can be found here.
So to install Qt 5.6.1-1 with Homebrew you can do this:
curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/fdfc724dd532345f5c6cdf47dc43e99654e6a5fd/Formula/qt5.rb
brew install ./qt5.rb
brew install qt#5
From the other versions section of https://formulae.brew.sh/formula/qt

How to install specific version of maven in mac using brew command

I want to install specific version (3.0.5) of maven in my using brew command. I tried the following command which is failed with Error: No available formula with the name "3.0.5"
brew install maven 3.0.5
Any ideas?
brew search maven
lists all maven versions as below
maven maven-completion maven-shell maven#3.0 maven#3.1 maven#3.2 ✔ maven#3.3
brew install maven#3.0
Installs maven 3.0.5 on my mac.
brew install https://raw.github.com/Homebrew/homebrew-versions/master/maven30.rb
it will then use a different Homebrew's formular which will give you the maven 3.0.5 instead
I tried this last on my Mac and it works installing the 3.0.5!
If none works and you can use similar version try the below:
brew install maven30
What OS do you have? On OS X 10.9 you should use brew install maven30 since maven 3.1.1 seems to be buggy.
By the way:
Using Homebrew:
you#host:~$ brew install maven will install Maven 3.3.1 (3/24/15)
you#host:~$ brew install maven30 will install Maven 3.0 which should be
better
If you got a 404 error, try doing a brew update just before.
If always nothing, try to recover the installation:
cd ~/Documents
mkdir BrewRecovery
cd BrewRecovery
curl -OL https://gist.githubusercontent.com/ilovezfs/21a741a78927a17b9ad1/raw/fef5866ccd51f07a9635fcb1096e8df0479af01b/Brewfile-deanchester.brewfile
md5 Brewfile-deanchester.brewfile
In general,
brew is unable to install any specific version such as 3.8.1
as it only gives few versions as the available options.
The only way then to install would be do it manually.
Also don't forget to update Path variable in your mac.
If you run brew install maven, the latest stable version would be installed.
If you want to install the previous versions you can run
brew install maven#versionNumber where versionNumber is your desired version.
Not all versions are available here in,
Also you may try hitting the website with the required version and download the file its available
https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.1/.
where you may substitute 3.6.1 with the version you want to run.

CMake GUI on Mac

I can't find where I can get the GUI tool for CMake on MacOSX. I see references to it online but nothing else. I got CMake using MacPorts but on Windows I am used to using the GUI.
Does it exist on Mac and where/how do I get it?
you need to install the gui variant:
sudo port install cmake +gui
you may need to run sudo port uninstall cmake first.
Cask is outdated now. You can install cmake using:
brew install --cask cmake
Try installing the cmake GUI using brew cask
brew cask install cmake
how to install brew cask
Install Homebrew first How to install homebrew
Add the brew cask to using the command brew tap caskroom/cask
here it is:
http://www.cmake.org/cmake/resources/software.html
extra plugins will imported by their own extensions so no OS compatibility is needed ;)

Resources