I have global gems and various gemsets. I want to remove all gems of a gemset. Is there a way do to this, besides uninstalling the gemset?
相关问题
- How to specify memcache server to Rack::Session::M
- Why am I getting a “C compiler cannot create execu
- reference to a method?
- ruby 1.9 wrong file encoding on windows
- gem cleanup shows error: Unable to uninstall bundl
相关文章
- Ruby using wrong version of openssl
- Difference between Thread#run and Thread#wakeup?
- how to call a active record named scope with a str
- “No explicit conversion of Symbol into String” for
- Segmentation fault with ruby 2.0.0p247 leading to
- How to detect if an element exists in Watir
- uninitialized constant Mysql2::Client::SECURE_CONN
- ruby - simplify string multiply concatenation
you can also use
rvm --force gemset empty
This is the safest way to uninstalling all gems of a gemset
Step 1
If you gem version is less then 2.1.
Step 2
references
rvm gemset empty <gemset>
works, but only if you specify a gemset name.If you want to empty the default gemset, you need to pass an empty string for the gemset name.
rvm gemset empty mygems ""
This command removes all the ruby gems installed locally in 1-step Works well in Ubuntu 10.10
PS - removes all local gems. Use sudo accordingly.
Use the
gemset empty
command:rvm gemset empty <gemset name>
This will remove all gems from your mentioned gemset.