Valentin V
Valentin V

Reputation: 25739

RVM global gemset confusion

I'm using a gemset per project approach. Suppose I just installed RVM, created a gemset, called 'test' and install rails 3.1.0.rc4 there, which installs a bunch of gems. Now I switch to the global gemset (rvm gemset use global), and view my gems. I expect to see empty list, because I didn't install any gems into global gemset, but see all my gems from 'test' gemset. How is that?

My guess is that rvm gem list show all gems from all gemsets when invoked from global gemset. If so, how can I view only current gemset's gems?

Upvotes: 4

Views: 1458

Answers (3)

mpapis
mpapis

Reputation: 53158

in RVM 1.16.0 the command gem is removed, it was causing to much confusion and was deprecated a year ago.

instead use:

rvm [<ruby>[@<gemset>],...|default|all] [--verbose] do <command> ...

Upvotes: 1

warpc
warpc

Reputation: 221

In common:

rvm <ruby version>@<gemset name> do gem list

For example:

rvm @test do gem list 

show that you want: gems on test gemset environment

Another way:

rvm use @test
gem list

show the same

Upvotes: 7

Ramiz Raja
Ramiz Raja

Reputation: 6030

Use gem list instead of rvm gem list

Upvotes: 2

Related Questions