Debian Codegraph @

book/src/package-managers.md

raw symbols SCIP
1 ## Package managers
2
3 - [Linux](#linux)
4 - [Debian](#debian)
5 - [Ubuntu/Mint](#ubuntumint)
6 - [Fedora/RHEL](#fedorarhel)
7 - [Arch Linux extra](#arch-linux-extra)
8 - [NixOS](#nixos)
9 - [Flatpak](#flatpak)
10 - [Snap](#snap)
11 - [AppImage](#appimage)
12 - [Linux Homebrew Core](#linux-homebrew-core)
13 - [macOS](#macos)
14 - [Homebrew Core](#homebrew-core)
15 - [MacPorts](#macports)
16 - [Windows](#windows)
17 - [Winget](#winget)
18 - [Scoop](#scoop)
19 - [Chocolatey](#chocolatey)
20 - [Packably](#packably)
21 - [MSYS2](#msys2)
22
23 [![Packaging status](https://repology.org/badge/vertical-allrepos/helix-editor.svg)](https://repology.org/project/helix-editor/versions)
24
25 ## Linux
26
27 The following third party repositories are available:
28
29 ### Debian
30
31 ```sh
32 sudo apt install hx
33 ```
34
35 If you are running a system older than Debian 13, follow the steps for
36 [Ubuntu/Mint](#ubuntumint).
37
38 ### Ubuntu/Mint
39
40 Install the Debian package [from the release page](https://github.com/helix-editor/helix/releases/latest).
41
42 If you are running a system older than Ubuntu 22.04, Mint 21, or Debian 12, you can build the `.deb` file locally
43 [from source](./building-from-source.md#building-the-debian-package).
44
45 ### Fedora/RHEL
46
47 ```sh
48 sudo dnf install helix
49 ```
50
51 ### Arch Linux extra
52
53 Releases are available in the `extra` repository:
54
55 ```sh
56 sudo pacman -S helix
57 ```
58
59 > 💡 When installed from the `extra` repository, run Helix with `helix` instead of `hx`.
60 >
61 > For example:
62 > ```sh
63 > helix --health
64 > ```
65 > to check health
66
67 Additionally, a [helix-git](https://aur.archlinux.org/packages/helix-git/) package is available
68 in the AUR, which builds the master branch.
69
70 ### NixOS
71
72 Helix is available in [nixpkgs](https://github.com/nixos/nixpkgs) through the `helix` attribute,
73 the unstable channel usually carries the latest release.
74
75 Helix is also available as a [flake](https://wiki.nixos.org/wiki/Flakes) in the project
76 root. Use `nix develop` to spin up a reproducible development shell. Outputs are
77 cached for each push to master using [Cachix](https://www.cachix.org/). The
78 flake is configured to automatically make use of this cache assuming the user
79 accepts the new settings on first use.
80
81 If you are using a version of Nix without flakes enabled,
82 [install Cachix CLI](https://docs.cachix.org/installation) and use
83 `cachix use helix` to configure Nix to use cached outputs when possible.
84
85 ### Flatpak
86
87 Helix is available on [Flathub](https://flathub.org/en-GB/apps/com.helix_editor.Helix):
88
89 ```sh
90 flatpak install flathub com.helix_editor.Helix
91 flatpak run com.helix_editor.Helix
92 ```
93
94 ### Snap
95
96 Helix is available on [Snapcraft](https://snapcraft.io/helix) and can be installed with:
97
98 ```sh
99 snap install --classic helix
100 ```
101
102 This will install Helix as both `/snap/bin/helix` and `/snap/bin/hx`, so make sure `/snap/bin` is in your `PATH`.
103
104 ### AppImage
105
106 Install Helix using the Linux [AppImage](https://appimage.org/) format.
107 Download the official Helix AppImage from the [latest releases](https://github.com/helix-editor/helix/releases/latest) page.
108
109 ```sh
110 chmod +x helix-*.AppImage # change permission for executable mode
111 ./helix-*.AppImage # run helix
112 ```
113
114 You can optionally [add the `.desktop` file](./building-from-source.md#configure-the-desktop-shortcut). Helix must be installed in `PATH` with the name `hx`. For example:
115 ```sh
116 mkdir -p "$HOME/.local/bin"
117 mv helix-*.AppImage "$HOME/.local/bin/hx"
118 ```
119
120 and make sure `~/.local/bin` is in your `PATH`.
121
122 ### Linux Homebrew Core
123
124 Checkout the [macOS](#homebrew-core) instructions below.
125
126 ## macOS
127
128 ### Homebrew Core
129
130 Install the latest release:
131
132 ```sh
133 brew install helix
134 ```
135
136 Or, install the latest nightly version:
137
138 ```sh
139 brew install --HEAD helix
140 ```
141
142 ### MacPorts
143
144 ```sh
145 sudo port install helix
146 ```
147
148 ## Windows
149
150 Install on Windows using [Winget](https://learn.microsoft.com/en-us/windows/package-manager/winget/), [Scoop](https://scoop.sh/), [Chocolatey](https://chocolatey.org/), [Packably](https://www.packably.com.br/)
151 or [MSYS2](https://msys2.org/).
152
153 ### Winget
154 Windows Package Manager winget command-line tool is by default available on Windows 11 and modern versions of Windows 10 as a part of the App Installer.
155 You can get [App Installer from the Microsoft Store](https://www.microsoft.com/p/app-installer/9nblggh4nns1#activetab=pivot:overviewtab). If it's already installed, make sure it is updated with the latest version.
156
157 ```sh
158 winget install Helix.Helix
159 ```
160
161 ### Scoop
162
163 ```sh
164 scoop install helix
165 ```
166
167 ### Chocolatey
168
169 ```sh
170 choco install helix
171 ```
172
173 ### Packably
174
175 ```sh
176 packl install helix
177 ```
178
179 ### MSYS2
180
181 For 64-bit Windows 8.1 or above:
182
183 ```sh
184 pacman -S mingw-w64-ucrt-x86_64-helix
185 ```