Skip to content

Instantly share code, notes, and snippets.

@jayv
Created October 13, 2023 20:06
Show Gist options
  • Save jayv/1844442bdd5ae243daeadef4e4742cb5 to your computer and use it in GitHub Desktop.
Save jayv/1844442bdd5ae243daeadef4e4742cb5 to your computer and use it in GitHub Desktop.
Build and install neovim from stable tag on ubuntu as a .deb pkg
# /bin/bash
# run from inside a neovim clone, eg:
# git clone https://github.com/neovim/neovim.git
set -euo
echo building latest stable neovim
# update all remote data
git fetch origin --tags --force
# switch to latest remote/stable tag
git checkout tags/stable
# build all things
make clean
make CMAKE_BUILD_TYPE=RelWithDebInfo
cd build && cpack -G DEB
# Install the new package
sudo dpkg -i nvim-linux64.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment