From 5c36701228e166f8aa89983044404ff322fe481f Mon Sep 17 00:00:00 2001 From: Robert O'Shea Date: Thu, 8 Feb 2024 14:55:53 +0000 Subject: [PATCH] docs(install): add more Linux install instructions #27350 --- INSTALL.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index 8ca3ab7a13..9bba1f0a8c 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -93,6 +93,20 @@ The [Releases](https://github.com/neovim/neovim/releases) page provides pre-buil ## Linux +### Pre-built archives + +The [Releases](https://github.com/neovim/neovim/releases) page provides pre-built binaries for Linux systems. + +```sh +curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz +sudo rm -rf /opt/nvim +sudo tar -C /opt -xzf nvim-linux64.tar.gz +``` + +After this step add this to `~/.bashrc`: + + export PATH="$PATH:/opt/nvim-linux64/bin" + ### AppImage ("universal" Linux package) The [Releases](https://github.com/neovim/neovim/releases) page provides an [AppImage](https://appimage.org) that runs on most Linux systems. No installation is needed, just download `nvim.appimage` and run it. (It might not work if your Linux distribution is more than 4 years old.) @@ -101,6 +115,15 @@ The [Releases](https://github.com/neovim/neovim/releases) page provides an [AppI chmod u+x nvim.appimage ./nvim.appimage +To expose nvim globally: + + mkdir -p /opt/nvim + mv nvim.appimage /opt/nvim/nvim + +And the following line to `~/.bashrc`: + + export PATH="$PATH:/opt/nvim/" + If the `./nvim.appimage` command fails, try: ```sh ./nvim.appimage --appimage-extract @@ -111,7 +134,7 @@ sudo mv squashfs-root / sudo ln -s /squashfs-root/AppRun /usr/bin/nvim nvim ``` - + ### Arch Linux Neovim can be installed from the community repository: