Skip to content

Instantly share code, notes, and snippets.

@dhensen
Last active August 20, 2025 22:24
Show Gist options
  • Save dhensen/848b1bf838fa9574751bb2c3971c4d19 to your computer and use it in GitHub Desktop.
Save dhensen/848b1bf838fa9574751bb2c3971c4d19 to your computer and use it in GitHub Desktop.
I use this to compile and install latest stable neovim on my raspberry pi zero w
#!/usr/bin/env bash
# Run this: curl -fsSL https://gist.githubusercontent.com/dhensen/848b1bf838fa9574751bb2c3971c4d19/raw/get-neovim-stable.sh | bash
git clone https://github.com/neovim/neovim --depth 1 -b stable
cd neovim
sudo apt-get install -y ninja-build gettext cmake curl build-essential git
make CMAKE_BUILD_TYPE=RelWithDebInfo
PKG_ARCH=$(uname -m)
cd build && sudo cpack -G DEB && sudo dpkg -i nvim-linux-$PKG_ARCH.deb
nvim --version
echo "done installing stable neovim"
@dhensen
Copy link
Author

dhensen commented Aug 20, 2025

If you installed neovim using apt, don't forget to sudo apt remove neovim neovim-runtime before or after installation, order does not matter. Also make sure to have the time/patience, because compiling this on the pi zero W (the v1 single core) takes over 1.5 hours to complete.

(you might also need to run sudo apt autoremove before the compiled nvim gets installed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment