How to install Elixir on Fedora

Posted on by

Elixir is based on the Erlang virtual machine. Hence, to run Elixir you will have to install Erlang fist (See this tutorial: How to install Erlang on Fedora)

After the successful installation of Erlang we can continue and install Elixir by opening up the terminal and type:

sudo dnf install elixir

Type in your sudo password and confirm the installation with Yes. After everything was installed correctly your terminal/console should end up with the Complete! statement.

To test if our fresh installation of Elixir works we can check for the installed version of Elixir by typing:

elixir -v

If this works, you should see a message like this:

Erlang/OTP 18 [erts-] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]

Elixir 1.2.6

This tells us that we have Elang/OTP version 18 installed. The next line
indicates the version of our Elixir installation. In this case 1.2.6. You
are now ready to use Elixir.

Optional: If you want to use Elixirs package manager for dependency
management (called Hex), you can install it by typing:

mix local.hex

I hope you find this short tutorial helpful. If you have any questions or comment please use the section below to leave a note or ping me on Twitter.