Uninstalling all gems Ruby 2.0.0
It seems that ruby 2.0.0 has added "default" gems to the mix and makes them non removable by gem uninstall. How can you remove all non default gems? I used this one line script. for i in `gem list --no-versions`; do gem uninstall -aIx $i; done It ignores default gem errors and just proceeds. Simple and self-evident. Dolittle Wang First, go to the gems directory Like ../ruby/2.0.0-p195/lib/ruby/gems/2.0.0/specifications You will find a directory named default , which including all the default gems shipped with ruby 2.0 Move all the *.gemspec stored in default dir to specifications dir and