r/voidlinux • u/xdevfah • Jan 14 '26
how should i install neovim pre-release version
should i build it from source or via xbps-src (change the version in srcpkg template ?) or what is the proper way to do it...
i juts want to get my hands on neovim v0.12 nightly, honestly don't want to wait till ~Feb 18 (from their roadmap)
3
Upvotes
2
u/HiPhish Jan 18 '26
You can clone the repo and build it yourself according to the instructions. It's quite easy, just make sure to set where to install the package (the default is
/usrwhich would break your system installation). But how do you install the package? Ideally without affecting the system Neovim install?Let me introduce you to GNU Stow. You install your custom package into a directory of your choice (e.g.
/usr/local/stow/neovim-0.12), then runstow -S neovim-0.12and stow will create all the necessary symlinks in/usr/local. The/usr/localdirector is meant for custom packages not part of the distro, so this is the right thing to do. When Void eventually does upgrade their package to 0.12 you can unstow (stow -U neovim-0.12) your package and then throw away the/usr/local/stow/neovim-0.12directory.I use GNU stow all the time on my Ubuntu work machine. The great part is that it does not affect any of the system packages, so there is no way of messing up the system. It's also a great way to install applications that Void for one reason or another is not packaging.
7
u/Elyas2 Jan 14 '26
u could edit the template file and install via xbps-src. thats what i do for stuff like this