Upgrade Neovim To The Latest

If you want to upgrade neovim to the latest version in Linux/WSL, here is the steps:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# remove the current version
sudo apt remove neovim

# add neovim ppa
sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt update
sudo apt install neovim

# verify neovim installation
nvim --version

If you encounter an error “sudo: add-apt-repository: command not found”, then you should install the software-properties-common package.

1
2
sudo apt update
sudo apt install software-properties-common
Licensed under CC BY-NC-SA 4.0
Last updated on Nov 05, 2024 22:10 +0800