How can I install Neovim on Ubuntu? Should I compile it from source?

The installation steps are a little bit blurry for me...

6 Answers 6


From the universe repo

sudo apt install neovim

From source

  1. Download the master branch from Github

  2. Install the dependencies

    sudo apt-get install libtool autoconf automake cmake libncurses5-dev g++
  3. Go to the root of the project and build

    make cmake
    make test
  4. Run nvim in /neovim-master/build/bin

That works for me.

From the PPA repository

  1. Add the repository

     $ sudo add-apt-repository ppa:neovim-ppa/unstable
  2. Update and install

     $ sudo apt-get update
     $ sudo apt-get install neovim
  • After that you might want to create a symlink in /usr/bin to point to nvim location so that it is indirectly included in your $PATH.
    – Buddyshot
    Commented Mar 5, 2014 at 19:55
  • 1
    I would suggest creating a symlink in ~/bin and adding that directory to your path. This makes it easier to add other scripts to your PATH too.
    – aignas
    Commented Aug 22, 2014 at 9:57
  • 4
    Might need to install libtool-bin, as well. Commented Nov 10, 2016 at 21:41

According to official Wiki:

Neovim has been added to a Personal Package Archive which allows you to install it using apt-get on Ubuntu 12.04 and later

Run the following commands:

sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt-get update
sudo apt-get install neovim

Prerequisites for the Python modules:

sudo apt-get install python-dev python-pip python3-dev python3-pip
  • You still have to install Python modules by hand, which sucks IMHO. Commented Dec 24, 2015 at 21:15
  • See this wiki section for the three easy steps to install python modules.
    – Tom Hale
    Commented Oct 20, 2016 at 9:21

Now you can simply do:

sudo apt install neovim
  • 1
    This version is usually very old. It's better to use ppa. Commented Mar 4, 2022 at 20:20
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
chmod u+x nvim.appimage

from https://github.com/neovim/neovim/wiki/Installing-Neovim

It just downloads standalone appimage. u can place it in path if you want to excute it from anywhere. Works on ALL DISTRIBUTIONS


I followed the;

git clone **; 
cd neovim; 
make cmake
make test

ended up with nvim that worked, but isn't integrated with the system. I might leave him a few weeks/months to get it into some sort of state. But it does work.


You can install it with sudo apt install neovim or sudo snap install nvim --classic but in both cases you will not get the latest version of neovim, with apt being the worst of the two.

The best way to install the latest version of Neovim - and keep it up to date - is by using bob:

wget https://github.com/MordechaiHadad/bob/releases/download/<version>/bob-linux-x86_64.zip
unzip bob-linux-x86_64.zip
cd bob-linux-x86_64/
chmod +x bob
echo "export PATH=\"/home/<username>/.local/share/bob/nvim-bin:\$PATH\"" >> ~/.bashrc
source ~/.bashrc
./bob install stable
./bob use stable

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .