You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use `install.sh --help` or `install.bat --help` to learn more about available arguments and options.
46
-
47
-
Install scripts support installing Elixir 1.14+.
48
-
49
19
## By Operating System
50
20
51
21
Install Elixir according to your operating system and tool of choice.
@@ -58,7 +28,9 @@ Install Elixir according to your operating system and tool of choice.
58
28
- Using [Macports](https://www.macports.org/):
59
29
* Run: `sudo port install elixir`
60
30
61
-
Note version managers (described below), are also available for macOS.
31
+
- Using [version managers](#version-managers)
32
+
33
+
- Using [install scripts](#install-scripts)
62
34
63
35
### GNU/Linux
64
36
@@ -94,10 +66,7 @@ Keep in mind that each Elixir version supports specific Erlang/OTP versions. [Se
94
66
$ sudo apt install elixir erlang-dev erlang-xmerl
95
67
```
96
68
97
-
- **Fedora 21 (and older)**
98
-
* Run: `sudo yum install elixir`
99
-
100
-
- **Fedora 22 (and newer)**
69
+
- **Fedora**
101
70
* Run: `sudo dnf install elixir erlang`
102
71
* Documentation is available in separate packages: `sudo dnf install elixir-doc erlang-doc`
103
72
* Fedora's Rawhide repository has newer versions before they go into the main repositories: `sudo dnf --disablerepo='*' --enablerepo=rawhide install elixir elixir-doc erlang erlang-doc`
@@ -124,6 +93,7 @@ Keep in mind that each Elixir version supports specific Erlang/OTP versions. [Se
124
93
125
94
- **Ubuntu**
126
95
* Run: `sudo apt install elixir`
96
+
* Alternativel, use [install scripts](#install-scripts)
127
97
128
98
- **Void Linux**
129
99
* Run: `xbps-install -S elixir`
@@ -159,7 +129,7 @@ Keep in mind that each Elixir version supports specific Erlang/OTP versions. [Se
159
129
- Using [Chocolatey](https://community.chocolatey.org/):
160
130
* Install Elixir (installs Erlang as a dependency): `choco install elixir`
161
131
162
-
Elixir versions before v1.15 can also be installed using the deprecated [Online Elixir Installer](https://github.com/elixir-lang/elixir-windows-setup/releases/tag/v2.4).
132
+
- Using [install scripts](#install-scripts)
163
133
164
134
### Raspberry Pi and embedded devices
165
135
@@ -178,6 +148,36 @@ If you are familiar with Docker you can use the official Docker image to get sta
178
148
179
149
The above will automatically point to the latest Erlang and Elixir available. For production usage, we recommend using [Hex.pm Docker images](https://hub.docker.com/r/hexpm/elixir), which are immutable and point to a specific Erlang and Elixir version.
180
150
151
+
## Install scripts
152
+
153
+
Elixir and Erlang/OTP can be quickly installed for macOS, Windows, or Ubuntu using an `install.sh`/`install.bat` script:
154
+
155
+
If you are using bash (macOS/Ubuntu/Windows), run:
156
+
157
+
```sh
158
+
curl -fsSO {{ site.url }}/install.sh
159
+
sh install.sh elixir@{{ stable.version }} otp@{{ stable.recommended_otp }}
Use `install.sh --help` or `install.bat --help` to learn more about available arguments and options.
178
+
179
+
Install scripts support installing Elixir 1.14+.
180
+
181
181
## Precompiled package
182
182
183
183
Elixir provides a precompiled package for every release. First [install Erlang](/install.html#installing-erlang) and then download the appropriate precompiled Elixir below. You can consult your Erlang/OTP version by running `erl -s halt`:
0 commit comments