Skip to content

Commit 284c7d2

Browse files
committed
Move install scripts and link to them from multiple places
1 parent de20c39 commit 284c7d2

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

install.markdown

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -16,36 +16,6 @@ Note that Elixir {{ stable.name }} requires Erlang {{ stable.minimum_otp }} or l
1616

1717
If you are not sure if you have Elixir installed or not, you can run `elixir --version` in your terminal.
1818

19-
## Install Script
20-
21-
Elixir and Erlang/OTP can be quickly installed for macOS, Windows, or Ubuntu using an `install.sh`/`install.bat` script:
22-
23-
If you are using bash (macOS/Ubuntu/Windows), run:
24-
25-
```sh
26-
curl -fsSO {{ site.url }}/install.sh
27-
sh install.sh elixir@{{ stable.version }} otp@{{ stable.recommended_otp }}
28-
installs_dir=$HOME/.elixir-install/installs
29-
export PATH=$installs_dir/otp/{{ stable.recommended_otp }}/bin:$PATH
30-
export PATH=$installs_dir/elixir/{{ stable.version }}-otp-{{ stable.otp_versions[0] }}/bin:$PATH
31-
iex
32-
```
33-
34-
If you are using PowerShell (Windows), run:
35-
36-
```pwsh
37-
curl.exe -fsSO {{ site.url }}/install.bat
38-
.\install.bat elixir@{{ stable.version }} otp@{{ stable.recommended_otp }}
39-
$installs_dir = "$env:USERPROFILE\.elixir-install\installs"
40-
$env:PATH = "$installs_dir\otp\{{ stable.recommended_otp }}\bin;$env:PATH"
41-
$env:PATH = "$installs_dir\elixir\{{ stable.version }}-otp-{{ stable.otp_versions[0] }}\bin;$env:PATH"
42-
iex.bat
43-
```
44-
45-
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-
4919
## By Operating System
5020

5121
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.
5828
- Using [Macports](https://www.macports.org/):
5929
* Run: `sudo port install elixir`
6030

61-
Note version managers (described below), are also available for macOS.
31+
- Using [version managers](#version-managers)
32+
33+
- Using [install scripts](#install-scripts)
6234

6335
### GNU/Linux
6436

@@ -94,10 +66,7 @@ Keep in mind that each Elixir version supports specific Erlang/OTP versions. [Se
9466
$ sudo apt install elixir erlang-dev erlang-xmerl
9567
```
9668

97-
- **Fedora 21 (and older)**
98-
* Run: `sudo yum install elixir`
99-
100-
- **Fedora 22 (and newer)**
69+
- **Fedora**
10170
* Run: `sudo dnf install elixir erlang`
10271
* Documentation is available in separate packages: `sudo dnf install elixir-doc erlang-doc`
10372
* 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
12493
12594
- **Ubuntu**
12695
* Run: `sudo apt install elixir`
96+
* Alternativel, use [install scripts](#install-scripts)
12797
12898
- **Void Linux**
12999
* Run: `xbps-install -S elixir`
@@ -159,7 +129,7 @@ Keep in mind that each Elixir version supports specific Erlang/OTP versions. [Se
159129
- Using [Chocolatey](https://community.chocolatey.org/):
160130
* Install Elixir (installs Erlang as a dependency): `choco install elixir`
161131
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)
163133
164134
### Raspberry Pi and embedded devices
165135
@@ -178,6 +148,36 @@ If you are familiar with Docker you can use the official Docker image to get sta
178148
179149
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.
180150
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 }}
160+
installs_dir=$HOME/.elixir-install/installs
161+
export PATH=$installs_dir/otp/{{ stable.recommended_otp }}/bin:$PATH
162+
export PATH=$installs_dir/elixir/{{ stable.version }}-otp-{{ stable.otp_versions[0] }}/bin:$PATH
163+
iex
164+
```
165+
166+
If you are using PowerShell (Windows), run:
167+
168+
```pwsh
169+
curl.exe -fsSO {{ site.url }}/install.bat
170+
.\install.bat elixir@{{ stable.version }} otp@{{ stable.recommended_otp }}
171+
$installs_dir = "$env:USERPROFILE\.elixir-install\installs"
172+
$env:PATH = "$installs_dir\otp\{{ stable.recommended_otp }}\bin;$env:PATH"
173+
$env:PATH = "$installs_dir\elixir\{{ stable.version }}-otp-{{ stable.otp_versions[0] }}\bin;$env:PATH"
174+
iex.bat
175+
```
176+
177+
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+
181181
## Precompiled package
182182
183183
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

Comments
 (0)