From 1269e58a92191f7b5f614aecd2f6d8c660742cce Mon Sep 17 00:00:00 2001 From: Patrick van de Glind Date: Tue, 18 Jul 2023 14:08:56 +0200 Subject: [PATCH 1/3] install: apt is preferred over apt-get Reference: https://itsfoss.com/apt-vs-apt-get-difference/ --- install.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.markdown b/install.markdown index 5c481ddc7..4e2d540de 100644 --- a/install.markdown +++ b/install.markdown @@ -52,7 +52,7 @@ Keep in mind that each Elixir version supports specific Erlang/OTP versions. [Se * Run: `pacman -S elixir` - **Debian** - * Run: `sudo apt-get install elixir` + * Run: `sudo apt install elixir` - **Fedora 21 (and older)** * Run: `yum install elixir` @@ -81,7 +81,7 @@ Keep in mind that each Elixir version supports specific Erlang/OTP versions. [Se * Run: `eopkg install elixir` - **Ubuntu** - * Run: `sudo apt-get install elixir` + * Run: `sudo apt install elixir` - **Void Linux** * Run: `xbps-install -S elixir` From 17bafbcc726990048f54f7452aa9e52852ab5d7c Mon Sep 17 00:00:00 2001 From: Patrick van de Glind Date: Tue, 18 Jul 2023 14:16:01 +0200 Subject: [PATCH 2/3] Add RabbitMQ packages commands for Debian/Ubuntu As listed on https://github.com/elixir-lang/elixir-lang.github.com/issues/1704 --- install.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install.markdown b/install.markdown index 4e2d540de..d25f3e383 100644 --- a/install.markdown +++ b/install.markdown @@ -33,6 +33,14 @@ Note version managers (described below), are also available for macOS. On Unix systems, there are two options to install Elixir. You can use the Erlang/Elixir packages that are part of your distribution, although those may lag behind in version numbers (especially for LTS releases). In such cases, you can also opt to use a version manager. +For **Debian** and **Ubuntu**, there is also a third option to use the [RabbitMQ Packages](https://launchpad.net/~rabbitmq) (might not be up-to-date however likely newer than the distribution) + +```bash +$ sudo add-apt-repository ppa:rabbitmq/rabbitmq-erlang +$ sudo apt update +$ sudo apt install elixir +``` + #### Version managers There are many tools that allow developers to install and manage multiple Erlang and Elixir versions. They are useful if you have multiple projects running on different Elixir or Erlang versions, can't install Erlang or Elixir as mentioned above or if the version provided by your package manager is outdated. Here are some of those tools: From fdabdbc95db48431a4a2d2d3b81efa0e10265b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Tue, 18 Jul 2023 14:58:47 +0200 Subject: [PATCH 3/3] Update install.markdown --- install.markdown | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/install.markdown b/install.markdown index d25f3e383..90e0eb55b 100644 --- a/install.markdown +++ b/install.markdown @@ -33,14 +33,6 @@ Note version managers (described below), are also available for macOS. On Unix systems, there are two options to install Elixir. You can use the Erlang/Elixir packages that are part of your distribution, although those may lag behind in version numbers (especially for LTS releases). In such cases, you can also opt to use a version manager. -For **Debian** and **Ubuntu**, there is also a third option to use the [RabbitMQ Packages](https://launchpad.net/~rabbitmq) (might not be up-to-date however likely newer than the distribution) - -```bash -$ sudo add-apt-repository ppa:rabbitmq/rabbitmq-erlang -$ sudo apt update -$ sudo apt install elixir -``` - #### Version managers There are many tools that allow developers to install and manage multiple Erlang and Elixir versions. They are useful if you have multiple projects running on different Elixir or Erlang versions, can't install Erlang or Elixir as mentioned above or if the version provided by your package manager is outdated. Here are some of those tools: @@ -62,6 +54,15 @@ Keep in mind that each Elixir version supports specific Erlang/OTP versions. [Se - **Debian** * Run: `sudo apt install elixir` + - **Debian** (and **Ubuntu**) alternative + * Use the [RabbitMQ Packages](https://launchpad.net/~rabbitmq) (might not be up-to-date however likely newer than the distribution) + + ```bash + $ sudo add-apt-repository ppa:rabbitmq/rabbitmq-erlang + $ sudo apt update + $ sudo apt install elixir + ``` + - **Fedora 21 (and older)** * Run: `yum install elixir`