Steps:

  1. Remove the existing Neovim package: First, remove the older version of Neovim installed via dnf to avoid conflicts:

    sudo dnf remove neovim
  2. Download the Latest Neovim Release: Visit the Neovim Releases page on GitHub and download the latest .tar.gz release (for your architecture, e.g., nvim-linux64.tar.gz).

    Alternatively, you can use wget to download the latest release directly:

    wget https://github.com/neovim/neovim/releases/download/v0.10.0/nvim-linux64.tar.gz
  3. Extract and Install Neovim: Extract the downloaded file to a directory like /opt or ~/local:

    tar -xvzf nvim-linux64.tar.gz
    sudo mv nvim-linux64 /opt/nvim
  4. Create a Symlink to Make Neovim Accessible: To make Neovim accessible globally, create a symbolic link:

    sudo ln -s /opt/nvim/bin/nvim /usr/local/bin/nvim
  5. Verify Installation: Now, verify that you’ve installed the correct version by running:

    nvim --version

    This should show Neovim v0.10.0 or later.