Happening soon: Elixir Conf EU (22 - 24 April 2026). Get your ticket here!

Install Elixir

The fastest way to install Elixir is via install scripts, your operating system's package manager, or dedicated installers. If those aren't viable options, we recommend using precompiled packages or compiling the language from source yourself. All of these installation methods are explained in detail below.

Install by Operating System

Install Elixir according to your operating system and tool of choice.

macOS

  • Using install scripts Run: brew install elixir
  • Using Homebrew
  • 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
    Fedora's Rawhide repository keeps more recent versions: sudo dnf --repo=rawhide install elixir elixir-doc erlang erlang-doc You may use the default distribution, but those often lag behind: sudo dnf install elixir erlang Documentation is available in separate packages: sudo dnf install elixir-doc erlang-doc

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:

  • asdf - install and manage different Elixir and Erlang versions
  • kerl - install and manage different Erlang versions

Keep in mind that each Elixir version supports specific Erlang/OTP versions. See the supported versions alongside our docs.

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 clean
Using pkg Run: pkg install elixir or pkg install elixir-devel

Install Scripts

macOS

  • Using install scripts Run: brew install elixir
  • Using Homebrew
  • 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
    Fedora's Rawhide repository keeps more recent versions: sudo dnf --repo=rawhide install elixir elixir-doc erlang erlang-doc You may use the default distribution, but those often lag behind: sudo dnf install elixir erlang Documentation is available in separate packages: sudo dnf install elixir-doc erlang-doc

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:

  • asdf - install and manage different Elixir and Erlang versions
  • kerl - install and manage different Erlang versions

Keep in mind that each Elixir version supports specific Erlang/OTP versions. See the supported versions alongside our docs.

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 clean
Using pkg Run: pkg install elixir or pkg install elixir-devel