rubygemsrvmgemset

How to undo bundle install?


I am working on an Octopress blog, so I set up a separate gemset and did rvm use gemset octopress. It all worked fine. However, I opened a new ZSH tab (I'm on OS X Mountain Lion, if that's relevant) and it fell back to the previous gemset I was using. I didn't know that at that point though, so I ran bundle install. I noticed that it installed all the gems I had already installed in the Octopress gemset, so I figured out what was happening. The question: is there an easy way to undo this bundle install, so that I don't have all these gems in the other gemset, or should I uninstall them manually gem by gem (they are quite a few). Thanks.


Solution

  • you can empty gemsets with rvm:

    rvm gemset empty
    

    it will remove all gems from the selected gemset, you can also switch temporarly to other gemset with:

    rvm @the-other-gemset do rvm gemset empty