16. How to install the latest version of Neovim on Linux
Not every Linux distribution offers the latest version of Neovim, which is required by some Neovim extensions. It is very easy to install the latest version of Neovim by compiling it from the source code.
We will demonstrate the installation on a RHEL based distribution. On other distributions, step 1 will only be different, depending on whether you use apt, yay, etc.
Compiling from source
- Install the necessary tools and libraries:
sudo dnf groupinstall "Development Tools"
sudo dnf install cmake gcc gcc-c++ make ninja-build unzip
- Download the Neovim source code:
git clone https://github.com/neovim/neovim.git
cd neovim
- Compile Neovim:
make CMAKE_BUILD_TYPE=Release
- Installing Neovim:
sudo make install
Copyright ยฉ 2024 - 2025 ๐ ApolloNvim / Lukรกลก Kaลka