If a package is available both through apt-get and gem, which one should I choose?
I'm on Ubuntu and I don't know if I should install rake through apt-get or gem.
I use both apt-get and gem packages a lot.
What are the pros and cons with each?
You should use
rvm is also an option (see below)./usr/bin.You should not mix between using apt-get and gem arbitrarily.
That means you should not, but when you do;
you should know and remember why you did this.
When you use different methods, the overall system gets more complex.
You should always use RubyGems to install any kind of Gems (eg. Rails) to reduce confusion.