Update: I’ve now installed what I believe are the latest stable releases of Erlang, Elixir and Phoenix, and my notes are posted below.
I am still not sure what the difference between the erlang
and esl-erlang
packages are.
Hello. I’d like to install up-to-date versions of Erlang and Elixir in Ubuntu using repositories so that I can start to try using the Phoenix framework (and learning Elixir/some functional programming!).
Following the instructions here, I first tried to install the https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
package, which said it couldn’t find the system codename and prompted for a system codename input. I cancelled out of the config and purged the deb. The second time I tried, it didn’t say it couldn’t find the system codename but after an apt-get update
, apt-cache policy erlang
(and elixir
and esl-erlang
) still only showed the archive.ubuntu.com
sources (or none at all in the case of esl-erlang
).
At https://packages.erlang-solutions.com/erlang/ there are instructions to install the repositories manually, and I added deb https://packages.erlang-solutions.com/ubuntu yakkety contrib
to /etc/apt/sources.list.d/erlang-solutions.list
. Doing an apt-get update
showed:
Get:8 https://packages.erlang-solutions.com/ubuntu yakkety Release [2,538 B]
Get:9 https://packages.erlang-solutions.com/ubuntu yakkety Release.gpg [836 B]
Get:10 https://packages.erlang-solutions.com/ubuntu yakkety/contrib i386 Packages [18.3 kB]
Get:11 https://packages.erlang-solutions.com/ubuntu yakkety/contrib amd64 Packages [18.3 kB]
Results:
$ apt-cache policy esl-erlang
esl-erlang:
Installed: (none)
Candidate: 1:19.1.5
Version table:
1:19.1.5 500
500 https://packages.erlang-solutions.com/ubuntu yakkety/contrib amd64 Packages
1:19.1.3 500
500 https://packages.erlang-solutions.com/ubuntu yakkety/contrib amd64 Packages
1:18.3.4 500
500 https://packages.erlang-solutions.com/ubuntu yakkety/contrib amd64 Packages
$ apt-cache policy erlang
erlang:
Installed: (none)
Candidate: 1:19.1-1
Version table:
1:19.1-1 500
500 https://packages.erlang-solutions.com/ubuntu yakkety/contrib amd64 Packages
500 https://packages.erlang-solutions.com/ubuntu yakkety/contrib i386 Packages
1:18.3.4.4+dfsg-1ubuntu2 500
500 http://de.archive.ubuntu.com/ubuntu yakkety/universe amd64 Packages
500 http://de.archive.ubuntu.com/ubuntu yakkety/universe i386 Packages
1:18.3-1 500
500 https://packages.erlang-solutions.com/ubuntu yakkety/contrib amd64 Packages
500 https://packages.erlang-solutions.com/ubuntu yakkety/contrib i386 Packages
$ apt-cache policy elixir
elixir:
Installed: (none)
Candidate: 1.2.6-1
Version table:
1.2.6-1 500
500 http://de.archive.ubuntu.com/ubuntu yakkety/universe amd64 Packages
500 http://de.archive.ubuntu.com/ubuntu yakkety/universe i386 Packages
While ‘esl-erlang’ and ‘erlang’ have versions from the erlang-solutions repository, ‘elixir’ doesn’t. Am I right in thinking that it should have a version 1.3 from the erlang-solutions repository? Here there are ‘yakkety’ debs listed for erlang- but not elixir-.
There is a elixir_1.3.4-1~ubuntu~xenial_amd64.deb
package listed .
There’s also a ‘Ubuntu Yakkety (64-bit)’ deb package available for direct download at https://packages.erlang-solutions.com/erlang/ - would it be worth installing that or is it better to stick to the repository approach (if that will be made to provide the most recent official release of Elixir) for updates?
Thanks.