# 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

1. Install the necessary tools and libraries:

    sudo dnf groupinstall "Development Tools"
    sudo dnf install cmake gcc gcc-c++ make ninja-build unzip

1. Download the Neovim source code:

    git clone https://github.com/neovim/neovim.git
    cd neovim

1. Compile Neovim:

    make CMAKE_BUILD_TYPE=Release

1. Installing Neovim:

    sudo make install

Copyright © 2024 - 2025 🚀 ApolloNvim / Lukáš Kaňka