Last Updated: February 25, 2016
·
5.368K
· dtommasino

Remove all gems

If you are using rvm and accidentally install gems with the 'sudo' command you can quickly remove all gems:

$ rvm use system && sudo gem list --no-versions | xargs sudo gem uninstall -a

Then you can just normally install bundler:

$ gem install bundle

And then leverage your gemfile:

$ bundle install

3 Responses
Add your response

you could just use rvm gemset empty

over 1 year ago ·

Great tip, and great last name!

over 1 year ago ·

@descentintomael
I think this tip about removing system gems, not gems from RVM gemset.

over 1 year ago ·