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.
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 remove the empty default dir.
Then you can do whatever you want like old days.:-)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With