Please understand that I am not trying to use bash RVM. I just wanted to understand why it is so popular in the Ruby community.
There seem to be two main reasons for using RVM - for managing / switching between different versions of Ruby and for managing a specific gemset for each project. However, there seem to be much cleaner ways to achieve the same thing on Linux:
- I can install different versions of ruby from repositories through a regular package manager or build from the source and install as a package. I can switch between versions using update-alternatives (at least on Debian, Ubuntu, Fedora).
- I can use the Bundler to manage gem sets for different projects, as outlined in this blog post .
Given the above, I am confused about why I would like to use RVM to control Ruby versions and gems. The idea of using a bash script to install software on my system outside of the package manager seems very hacky, the feeling is reinforced by this blog post .
Not being a Mac user, I fully guess here, but I thought OS X was very popular in the Ruby community. If OS X does not have a system such as update alternatives for switching ruby versions, RVM may be the best solution, and this idea has been ported to linux too. As I said, this is just an assumption.
So why is RVM so popular, and why should I prefer it over the regular package manager + Bundler on Debian or Ubuntu?
source share