Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0774af5

Browse files
committed
Improve installation instructions
1 parent 4ad55ed commit 0774af5

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

install.markdown

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Note that Elixir {{ stable.name }} requires Erlang {{ stable.minimum_otp }} or l
1717

1818
The preferred option for installing Elixir. Choose your operating system and tool.
1919

20-
If your distribution contains an old Elixir/Erlang version, see the sections below for installing Elixir/Erlang from version managers or from source.
20+
**If your distribution contains an old Elixir/Erlang version, see the sections below for installing Elixir/Erlang from version managers or from source**.
2121

2222
### macOS
2323

@@ -36,7 +36,7 @@ If your distribution contains an old Elixir/Erlang version, see the sections bel
3636
* Run: `pacman -S elixir`
3737

3838
- **Debian**
39-
* _See below the instructions for Ubuntu_
39+
* Run: `sudo apt-get install elixir`
4040

4141
- **Fedora 21 (and older)**
4242
* Run: `yum install elixir`
@@ -64,20 +64,14 @@ If your distribution contains an old Elixir/Erlang version, see the sections bel
6464
- **Solus**
6565
* Run: `eopkg install elixir`
6666

67-
- **Ubuntu** or **Debian**
68-
* From primary package repositories:
69-
* Run: `sudo apt-get install elixir`
67+
- **Ubuntu**
68+
* Run: `sudo apt-get install elixir`
7069

71-
* From Erlang Solutions, for more recent Elixir/Erlang versions on Ubuntu LTS (< 22.04) or Debian Stable releases:
72-
* Add Erlang Solutions repository: `wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && sudo dpkg -i erlang-solutions_2.0_all.deb`
73-
* Run: `sudo apt-get update`
74-
* Install the Erlang/OTP platform and all of its applications: `sudo apt-get install esl-erlang`
75-
* Install Elixir: `sudo apt-get install elixir`
76-
7770
- **Void Linux**
7871
* Run: `xbps-install -S elixir`
7972

8073
### BSD
74+
8175
- **FreeBSD**
8276
* The latest Elixir release is named [lang/elixir-devel](https://freshports.org/lang/elixir-devel).
8377
The default Elixir, [lang/elixir](https://freshports.org/lang/elixir), may
@@ -134,7 +128,21 @@ Elixir provides a precompiled package for every release. First [install Erlang](
134128
{% for otp_version in stable.otp_versions %}
135129
* [Elixir {{ stable.version }} on Erlang {{ otp_version }}](https://github.com/elixir-lang/elixir/releases/download/v{{ stable.version }}/elixir-otp-{{ otp_version }}.zip){% endfor %}
136130

137-
Once the release is download, unpack it, and you are ready to run the `elixir` and `iex` commands from the `bin` directory. However, we recommend you to [add Elixir's bin path to your PATH environment variable](#setting-path-environment-variable) to ease development.
131+
Once you download the release, unpack it, and you are ready to run the `elixir` and `iex` commands from the `bin` directory. However, we recommend you to [add Elixir's bin path to your PATH environment variable](#setting-path-environment-variable) to ease development.
132+
133+
### Mirrors and nightly builds
134+
135+
The links above point directly to the GitHub release. We also host and mirror precompiled packages and nightly builds globally via `repo.hex.pm` using the following URL scheme:
136+
137+
https://repo.hex.pm/builds/elixir/${ELIXIR_VERSION}-otp-${OTP_VERSION}.zip
138+
139+
For example, to use Elixir v1.13.3 with Erlang/OTP 24.x, use:
140+
141+
https://repo.hex.pm/builds/elixir/v1.13.3-otp-24.zip
142+
143+
To use nightly for a given Erlang/OTP version (such as 25), use:
144+
145+
https://repo.hex.pm/builds/elixir/main-otp-25.zip
138146

139147
## Compiling with version managers
140148

0 commit comments

Comments
 (0)