Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 834
Mo Fatty Avatar asked Jan 26 '23 00:01

Mo Fatty


1 Answers

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.

like image 199
Mo Fatty Avatar answered Jan 28 '23 06:01

Mo Fatty