Installing Elvish with a package manager

Table of content

Installing Elvish with a package manager allows you to upgrade Elvish alongside the rest of your system, but may not give you the latest version.

If the package manager you use doesn’t have the latest version, you are strongly recommended to the official binary instead. For a comprehensive list of packages and their freshness, see this Repology page.

Arch Linux

Arch package

To install the latest packaged release:

pacman -S elvish

To install the HEAD version, install elvish-git from AUR with your favorite AUR helper:

yay -S elvish-git

ChromeOS

Chromebrew package

Elvish is packaged by Chromebrew.

crew install elvish

Debian / Ubuntu

Debian 13 package Debian Unstable package Ubuntu 23.10 package Ubuntu 24.04 package

Elvish is packaged by Debian since buster and by Ubuntu since 17.10:

apt install elvish

Fedora

Fedora 40 package Fedora Rawhide package

Elvish is packaged for Fedora. To install it with dnf:

dnf install elvish

macOS

Elvish is packaged by both Homebrew and MacPorts.

Homebrew package

To install from Homebrew:

# Install latest packaged release
brew install elvish
# Or install HEAD:
brew install --HEAD elvish

MacPorts package

To install from MacPorts:

sudo port selfupdate
sudo port install elvish

Windows

Scoop package

Elvish is available in the Main bucket of Scoop. This will install the latest packaged release:

scoop install elvish

FreeBSD

FreeBSD port

Elvish is available in the FreeBSD ports tree and as a prebuilt package. Both methods will install the latest packaged release.

To install with pkg:

pkg install elvish

To build from the ports tree:

cd /usr/ports/shells/elvish
make install

NetBSD / pkgsrc

pkgsrc current package

Elvish is available in pkgsrc. To install from a binary package, run the following command:

pkgin install elvish

To build the elvish package from source instead:

cd /usr/pkgsrc/shells/elvish
make package-install

OpenBSD

OpenBSD port

Elvish is available in the official OpenBSD package repository. This will install the latest packaged release:

doas pkg_add elvish

NixOS (nix)

nixpkgs stable 23.11 package nixpkgs unstable package

Elvish is packaged in nixpkgs:

# Install latest packaged release
nix-env -i elvish