Skip to content

Commit

Permalink
Simplify Ubuntu steps, Debian ones do not work
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jan 9, 2025
1 parent f1c9004 commit f64ae38
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions install.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,13 @@ Install Elixir according to your operating system and tool of choice.

### GNU/Linux

Below we list steps for installing Elixir in different distributions. If your distribution is not listed, you may consider using [version managers](#version-managers).
Below we list steps for installing Elixir in different distributions. If your distribution is not listed or the steps below do not work, you may consider using [version managers](#version-managers).

#### Distributions

- **Arch Linux** (Community repository)
* Run: `pacman -S elixir`

- **Debian**
* The packages in `apt` tend to lag several versions behind. You may use [RabbitMQ Packages](https://launchpad.net/~rabbitmq) outlined below, which are likely newer than `apt`, or use [version managers](#version-managers).

```bash
$ sudo add-apt-repository ppa:rabbitmq/rabbitmq-erlang
$ sudo apt update
$ sudo apt install elixir erlang-dev erlang-xmerl
```

- **Fedora**
* Fedora's Rawhide repository keeps more recent versions: `sudo dnf --disablerepo='*' --enablerepo=rawhide install elixir elixir-doc erlang erlang-doc`
* You may use the default distribution, but those often lag behind: `sudo dnf install elixir erlang`
Expand All @@ -67,8 +58,14 @@ Below we list steps for installing Elixir in different distributions. If your di
* Optional: if you want to use the latest Erlang, you can use this repository: `zypper ar -f obs://devel:languages:erlang:Factory Erlang-Factory`

- **Ubuntu**
* The packages in `apt` tend to lag several versions behind, consider using [install scripts](#install-scripts) instead
* Alternatively, follow the steps outlined for Debian distributions
* Use [install scripts](#install-scripts) (or alternatively [version managers](#version-managers))
* The packages in `apt` tend to lag several versions behind. You may use [RabbitMQ Packages](https://launchpad.net/~rabbitmq) outlined below, which are likely newer than `apt`:

```bash
$ sudo add-apt-repository ppa:rabbitmq/rabbitmq-erlang
$ sudo apt update
$ sudo apt install git elixir erlang
```

#### Version managers

Expand Down

0 comments on commit f64ae38

Please sign in to comment.