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? 回答1: 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. 回答2: 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