Elixir Version Managers

Nope, but on the other side, I simply removed gemsets all together from 3 repos that used it. As gemset gives no advantages (at least I really can’t see any), and really work only with rvm.

What is the advantage of a .ruby-gemset over using a Gemfile with Bundle?

Gemsets give you…

…compartmentalized independent ruby setups. This means that ruby, gems and irb are all separate and self-contained - from the system, and from each other.


Ok, but what advantage that gives you? All of the gems and ruby installations are practically immutable. They do not change in any way not matter what application is run (do they?). So there is no advantage.

Anyway were diverging :slight_smile: Asdf work’s great with elixir, and any IDE/Editor I tried to write code in. If you need gemsets functionality you’re out of luck with asdf :frowning: Just like you’re out of luck when you need full rustup functionality when using rust.

I used gemsets a lot before bundler was a thing. I think that they are just a relict from those days. Also they give you a separation of environments which can’t leak by design, no bundle exec necessary.

I’ve read that there are performance benefits; with gemsets you have just the gems you need for that application, without them, your ruby install could have hundreds of gems (who’s gem-specs need to be parsed) - so you get faster loading.

For chruby, there’s https://github.com/postmodern/gem_home

I haven’t used them myself as I’ve not run into any performance issues.

Just tried asdf and it worked like a charm. I’ll use it now for everything, many thanks for the recommendations!


Super simple way to install and manage Elixir/Erlang with asdf -> article

article should probably mention installing elixir compiled against the installed otp version eg. something like asdf install elixir 1.5.0-otp-20 - so all features are available - read more here https://github.com/asdf-vm/asdf-elixir#elixir-precompiled-versions


Many thanks! Fixed :thumbsup:

1 Like

I install elixir with homebrew so if I want to manage elixir and use different versions I need to uninstall and use some of these managers and install again with the manager?

I’m not a Mac user, but that sounds right to me.

Of the options listed here I’ve only used asdf, and it’s very quick and easy to get set up with. In Linux I need to source .bashrc after following the installation instructions, which I mention in case it’s the same for Mac OS.

1 Like

Yes, I saw something about this. Thank’s BrightEyesDavid!


I have the same problem. I want to use multiple versions of elixir in case I want to try out a version or test in older versions but I have an existing elixir homebrew install and dont want to break anything in my system if I had to do adsf.

Has anyone had any problems?


1 Like

@demem123 asdf is easy to install, and also easy to remove or (temporarily) disable. The self-contained nature is the whole selling point of version managers :slight_smile: .


thanks! I will try it out. I was worried since I dont want to immobilize my dev machine if it broke.

I think I might need to install multiple versions because still need to catch up. Was just learning earlier version and there is a newer one just released! =)

It will not broke.
ASDF is the best choice for this.

1 Like

thanks! i’ve just started using it :slight_smile:

At this point Is there any versions managers for elixir on Windows?

I don’t use Windows for development, but I think choco is supposed to be good.