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
Written by Damian Tommasino
Related protips
3 Responses

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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#