| 1 | # Installation |
| 2 | |
| 3 | You can download an executable for your system: |
| 4 | [Linux (glibc)](https://github.com/dandavison/delta/releases/download/0.18.2/delta-0.18.2-x86_64-unknown-linux-gnu.tar.gz) |
| 5 | | |
| 6 | [Linux (musl)](https://github.com/dandavison/delta/releases/download/0.18.2/delta-0.18.2-x86_64-unknown-linux-musl.tar.gz) |
| 7 | | |
| 8 | [MacOS](https://github.com/dandavison/delta/releases/download/0.18.2/delta-0.18.2-x86_64-apple-darwin.tar.gz) |
| 9 | | |
| 10 | [Windows](https://github.com/dandavison/delta/releases/download/0.18.2/delta-0.18.2-x86_64-pc-windows-msvc.zip) |
| 11 | | |
| 12 | [All](https://github.com/dandavison/delta/releases) |
| 13 | |
| 14 | Alternatively you can install delta using a package manager: see [repology.org/git-delta](https://repology.org/project/git-delta/versions). |
| 15 | |
| 16 | Note that the package is often called `git-delta`, but the executable installed is called `delta`. Here is a quick summary for selected package managers: |
| 17 | |
| 18 | <table> |
| 19 | <tr> |
| 20 | <td><a href="https://archlinux.org/packages/extra/x86_64/git-delta/">Arch Linux</a></td> |
| 21 | <td><code>pacman -S git-delta</code></td> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td><a href="https://crates.io/crates/git-delta">Cargo</a></td> |
| 25 | <td><code>cargo install git-delta</code></td> |
| 26 | </tr> |
| 27 | <tr> |
| 28 | <td><a href="https://src.fedoraproject.org/rpms/rust-git-delta">Fedora</a></td> |
| 29 | <td><code>dnf install git-delta</code></td> |
| 30 | </tr> |
| 31 | <tr> |
| 32 | <td><a href="https://pkgs.org/download/git-delta">FreeBSD</a></td> |
| 33 | <td><code>pkg install git-delta</code></td> |
| 34 | </tr> |
| 35 | <tr> |
| 36 | <td><a href="https://packages.gentoo.org/packages/dev-util/git-delta">Gentoo</a></td> |
| 37 | <td><code>emerge dev-util/git-delta</code></td> |
| 38 | </tr> |
| 39 | <tr> |
| 40 | <td><a href="https://formulae.brew.sh/formula/git-delta">Homebrew</a></td> |
| 41 | <td><code>brew install git-delta</code></td> |
| 42 | </tr> |
| 43 | <tr> |
| 44 | <td><a href="https://ports.macports.org/port/git-delta/summary">MacPorts</a></td> |
| 45 | <td><code>port install git-delta</code></td> |
| 46 | </tr> |
| 47 | <tr> |
| 48 | <td><a href="https://search.nixos.org/packages?show=delta&query=delta">Nix</a></td> |
| 49 | <td><code>nix-env -iA nixpkgs.delta</code> |
| 50 | </tr> |
| 51 | <tr> |
| 52 | <td><a href="https://cvsweb.openbsd.org/ports/textproc/delta/">OpenBSD</a></td> |
| 53 | <td><code>pkg_add delta</code></td> |
| 54 | </tr> |
| 55 | <tr> |
| 56 | <td><a href="https://software.opensuse.org/package/git-delta">openSUSE</a></td> |
| 57 | <td><code>zypper install git-delta</code> |
| 58 | </tr> |
| 59 | <tr> |
| 60 | <td><a href="https://github.com/void-linux/void-packages/tree/master/srcpkgs/delta">Void Linux</a></td> |
| 61 | <td><code>xbps-install -S delta</code> |
| 62 | </tr> |
| 63 | <tr> |
| 64 | <td>Windows (<a href="https://chocolatey.org/packages/delta">Chocolatey</a>)</td> |
| 65 | <td><code>choco install delta</code></td> |
| 66 | </tr> |
| 67 | <tr> |
| 68 | <td>Windows (<a href="https://scoop.sh/">Scoop</a>)</td> |
| 69 | <td><code>scoop install delta</code></td> |
| 70 | </tr> |
| 71 | <tr> |
| 72 | <td>Windows (<a href="https://learn.microsoft.com/en-us/windows/package-manager/">Winget</a>)</td> |
| 73 | <td><code>winget install dandavison.delta</code></td> |
| 74 | </tr> |
| 75 | <tr> |
| 76 | <td>Debian / Ubuntu</td> |
| 77 | <td> |
| 78 | <code>dpkg -i file.deb</code> |
| 79 | <br> |
| 80 | .deb files are on the <a href="https://github.com/dandavison/delta/releases">releases</a> page. |
| 81 | <br> |
| 82 | <sup>If you are using Ubuntu <= 19.10 or are mixing apt sources, please read <a href="https://github.com/dandavison/delta/issues/504">#504</a>.</sup> |
| 83 | </td> |
| 84 | </tr> |
| 85 | <tr> |
| 86 | <td><a href="https://anaconda.org/conda-forge/git-delta">conda</a></td> |
| 87 | <td> |
| 88 | <code>conda install git-delta -c conda-forge</code> |
| 89 | <br> |
| 90 | <code>mamba install git-delta -c conda-forge</code> |
| 91 | </td> |
| 92 | </tr> |
| 93 | </table> |
| 94 | |
| 95 | Users of older MacOS versions (e.g. 10.11 El Capitan) should install using Homebrew, Cargo, or MacPorts: the binaries on the release page will not work. |
| 96 | |
| 97 | Behind the scenes, delta uses [`less`](https://www.greenwoodsoftware.com/less/) for paging. |
| 98 | It's important to have a reasonably recent version of less installed. |
| 99 | On MacOS, install `less` from Homebrew. For Windows, see [Using Delta on Windows](./tips-and-tricks/using-delta-on-windows.md). |
| 100 | |
| 101 | If you use [`bat`](https://github.com/sharkdp/bat) and are running `bat cache --build` to install custom themes or language syntaxes then you should install the same version of bat as specified in the [`Cargo.toml`](https://github.com/dandavison/delta/blob/main/Cargo.toml) for the delta release you're using, otherwise delta will crash with a [memory error](https://github.com/dandavison/delta/issues/1712). The current version of delta does not work with bat v0.18.3 or prior versions. |