hello all,
once in a while, when making a new gemset, I forget to use the gemset after 'rvm gemset create'-ing it. The result is that after a 'bundle install', the gems are placed in the wrong place.
Today this happened again: after a succesful install, I found the gems in the proper directory:
$ ls ~/.rvm/gems/jruby-1.6.5@xslt4/gems
aruba-0.5.3/ gherkin-2.11.8-java/ rspec-core-2.14.5/
builder-3.2.2/ jruby-openssl-0.9.0/ rspec-expectations-2.14.3/
childprocess-0.3.9/ multi_json-1.8.0/ rspec-mocks-2.14.3/
cucumber-1.2.5/ rack-1.5.2/ sinatra-1.4.2/
diff-lcs-1.2.4/ rack-protection-1.5.0/ tilt-1.4.1/
ffi-1.9.0-java/ rspec-2.14.1/
But I realized I installed them too in the default location
$ ls ~/.rvm/gems/jruby-1.6.5/gems
aruba-0.5.3/ gherkin-2.12.1-java/ rack-protection-1.5.0/
builder-3.2.2/ jruby-launcher-1.0.12-java/ rake-0.9.2/
bundler-1.0.22/ jruby-launcher-1.0.15-java/ rspec-2.14.1/
bundler-1.3.1/ jruby-launcher-1.0.17-java/ rspec-core-2.14.5/
bundler-1.3.5/ jruby-openssl-0.9.0/ rspec-expectations-2.14.3/
childprocess-0.3.9/ multi_json-1.8.0/ rspec-mocks-2.14.3/
cucumber-1.3.8/ multi_test-0.0.2/ sinatra-1.4.2/
diff-lcs-1.2.4/ net-sftp-2.1.2/ tilt-1.4.1/
ffi-1.9.0-java/ rack-1.5.2/
What is the best way of removing them? Can I do this best with a bundler or rvm command, or is rm -r possible too?
I have the same question for clearing gems after downgrading:
- I installed cucumber 1.3.8 in the gemset I used
- after I found out this leads to problems, I downgraded cucumber to 1.2.5, but the 1.3.8 version remained in the gemset.
- I wonder how this 1.3.8 version can be safely removed.
- rm -f did cause me problems
thanks in advance, Ruud