Search code examples
ubuntuerlangelixirerlang-otpasdf-vm

How to upgrade elixir version on Ubuntu 18/19


I have these installed:

$ asdf list
elixir
  1.6.6
erlang
  20.3.8

but for the life of me I cannot figure out how to upgrade my elixir version to 2.x. I am on Ubuntu, can anyone help?


Solution

  • Regardless of the language, with asdf version manager you do not "update" a given installation of a language.

    You just install a new version (asdf install <plugin> <version>) and remove the old one (asdf uninstall <plugin> <version>) if you do not need it anymore.

    Additionally you might change your "default" version using asdf global <package> <version>.

    Learn more about available commands:

    https://asdf-vm.com/#/core-commands