From f0b8690dd9d02e0359e3017e409a1cb7b81e14a0 Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Sun, 22 Nov 2026 21:40:39 +0100 Subject: [PATCH] Restructure installation guide for installations via package managers Reordered the section to list Nushell's Gemfury packages before official distro packages --- book/installation.md | 40 +++++++++++++++++++++++++++------------- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/book/installation.md b/book/installation.md index 73f874d95f9..b3cdafc3152 100644 --- a/book/installation.md +++ b/book/installation.md @@ -20,25 +20,27 @@ Nu binaries are published for Linux, macOS, and Windows [with each GitHub releas ## Package Managers -Nu is available via several package managers: +### Homebrew (macOS and Linux) -[![Packaging status](https://repology.org/badge/vertical-allrepos/nushell.svg)](https://repology.org/project/nushell/versions) - -For macOS and Linux, [Homebrew](https://brew.sh/) is a popular choice (`brew install nushell`). +Install with [Homebrew](https://brew.sh/): brew install nushell -For Windows: +### Winget (Windows) -- [Winget](https://docs.microsoft.com/en-us/windows/package-manager/winget/) +Install with [Winget](https://docs.microsoft.com/en-us/windows/package-manager/winget/): - User scope installation (the default): `winget install Nushell.Nushell` - Machine scope installation (for all users): `winget install Nushell.Nushell --override 'ALLUSERS=1'` - Upgrade: `winget upgrade Nushell.Nushell` - The `--scope` flag of `winget install` is not supported. Use `--override` as shown above for a machine scope installation. +The `--scope` flag of `winget install` is not supported. Use `--override` as shown above for a machine scope installation. + +### Scoop (Windows) -- [Scoop](https://scoop.sh/) (`scoop install nu`) +Install with [Scoop](https://scoop.sh/): `scoop install nu` -For Debian & Ubuntu: +### APT (Debian & Ubuntu) + +Install with APT: ```sh wget -qO- https://apt.fury.io/nushell/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/fury-nushell.gpg @@ -47,7 +49,9 @@ sudo apt update sudo apt install nushell ``` -For RedHat/Fedora & Rocky Linux: +### DNF (RedHat / Fedora & Rocky Linux) + +Install with DNF: ```sh echo "[gemfury-nushell] @@ -59,7 +63,9 @@ gpgkey=https://yum.fury.io/nushell/gpg.key" | sudo tee /etc/yum.repos.d/fury-nus sudo dnf install -y nushell ``` -For Alpine Linux: +### APK (Alpine Linux) + +Install with APK: ```sh echo "https://alpine.fury.io/nushell/" | tee -a /etc/apk/repositories @@ -67,9 +73,17 @@ apk update apk add --allow-untrusted nushell ``` -Cross Platform installation: +### NPM (cross-platform) -- [npm](https://www.npmjs.com/) (`npm install -g nushell` Note that nu plugins are not included if you install in this way) +Install with NPM: `npm install -g nushell` + +Note that nu plugins are not included if you install in this way + +### Distro repositories + +Nu is also available via official distro repositories for some distros; however, some may be a bit behind on newer releases, so we recommend using one of the methods above in those cases. + +[![Packaging status](https://repology.org/badge/vertical-allrepos/nushell.svg)](https://repology.org/project/nushell/versions) ## Docker Container Images