Package managers with latest Elixir version on Linux Mint?

I have linux mint on my machine, but when I tried to install elixir with apt, I found that only elixir 1.1 is on apt. But the latest is at least 1.6

After looking around, it seems that many other package managers have out of date versions of elixir.

Which package managers keep up to date with elixir releases?

Add the erlang solutions repository and your apt will be up to date. The ubuntu repo’s are rarely up to date (with hardly anything). :slight_smile:

2 Likes

Not the package managers have stuff in their repositories, but the distributions maintainers do.

For many distributions you can have community repositories additionally to the dsitributions ones, but those can massively affect the stability of the system.

The only distributions so far that I have seen that keep up with any versions were Gentoo, Funtoo and Arch, perhaps some derivates of those. But these three usually do not lack more than a week behind, and if they do, they usually have reasons for this.

Just take a closer look at your system. Elixir is probably not the only thing years behind. There is probably a lot more stuff.

2 Likes

You can get an excellent, objective, distribution-agnostic breakdown by looking at Repology:

https://repology.org/metapackage/elixir/versions

1 Like

Except it doesn’t contain erlang solutions servers, which is as the official as it gets locations for elixir and erlang repository.

I think most people use a version manager like asdf or kerl for that sort of thing. I never really use apt anymore for Feb dependencies i really care about, at least not in my dev machine.

3 Likes

It really easy with ASDF.
Simple instructions:

## ASDF
## Install ASDF
# https://github.com/asdf-vm/asdf
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.4.3

# do extra ASDF requirements

## Install plugins
asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang.git
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs.git

# do extra plugins requirements

## General ASDF Plugin Install
asdf plugin-update --all
asdf list-all PLUGIN
asdf install PLUGIN VERSION
asdf global PLUGIN VERSION
6 Likes