Install by Operating System
Install Elixir according to your operating system and tool of choice.
macOS
- Using install scripts
-
Using Homebrew
Run:
brew install elixir -
Using Macports
Run:
sudo port install elixir - Using version managers
GNU/Linux
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.
Distributions
- Arch Linux (Community repository)
Run:
pacman -S elixir - Fedora Rawhide keeps more recent versions:
sudo dnf --repo=rawhide install elixir elixir-doc erlang erlang-docThe default distribution lags behind:sudo dnf install elixir erlangDocumentation packages:sudo dnf install elixir-doc erlang-doc - Gentoo
Run:
emerge --ask dev-lang/elixir - GNU Guix
Run:
guix package -i elixir - Ubuntu Using install scripts
The packages in
apttend to lag several versions behind. You may use RabbitMQ Packages, which are likely newer thanapt:sudo add-apt-repository ppa:rabbitmq/rabbitmq-erlang sudo apt update sudo apt install git elixir erlang
BSD
- FreeBSD
The latest Elixir release is named lang/elixir-devel. The default Elixir, lang/elixir, may lag slightly as dependent ports are often not able to be updated to the newest Elixir release immediately.
Using ports Run:cd /usr/ports/lang/elixir && make install cleanUsing pkg Run:pkg install elixirorpkg install elixir-devel - OpenBSD
Run:
pkg_add elixir
Windows
- Using Windows installers Download and run the Erlang installer Download and run the Elixir installer compatible with your Erlang/OTP version:
Run
erlin the terminal if you are unsure of your Erlang/OTP version. Previous Elixir versions are available on the Releases page. - Using install scripts
-
Using Scoop Install Erlang:
scoop install erlangInstall Elixir:scoop install elixir -
Using Chocolatey
Install Elixir (installs Erlang as a dependency):
choco install elixir - Using version managers
Raspberry Pi and embedded devices
To build and package an Elixir application, with the whole operating system, and burn that into a disk or deploy it elsewhere, check out the Nerves project.
If you want to install Elixir as part of an existing Operating System, please follow the relevant steps above for your Operating System or install from precompiled/source.
Docker
If you are familiar with Docker you can use the official Docker image to get started quickly with Elixir.
-
Enter interactive mode
Run:
docker run -it --rm elixir -
Enter bash within container with installed
elixirRun:docker run -it --rm elixir bash
The above will automatically point to the latest Erlang and Elixir available. For production usage, we recommend using Hex.pm Docker images, which are immutable and point to a specific Erlang and Elixir version.