Install a specific Elixir version (having a hard time getting it right)

If you’re using Ubuntu like the OP, you can use apt to install a specific version of Elixir in the same way you’d do for any other package: apt-get install PACKAGE=VERSION.

The non-obvious part is that the Elixir apt packages append a “-1” to all their versions, so if you wanted 1.8.1, you’d have to run apt-get install elixir=1.8.1-1. Why this appendage exists, I’m not sure.