How to manage or clean gems

I had to clean my ruby gems because it was using a lot of space. So what were my options to get free space ? One single command to rule them all !

Here is a Windows command to uninstall all gems from your computer except a few one you cannot delete.

On Linux, to remove ALL gems, that would be:

If you just want to clean your gem list and only keep the latest version of each gem, you can use this command


After your system is clean, you can chose to add one gem after another with the “gem install <mygemname>” command or use the “bundle install” in a rails app.

Don’t forget to install bundler before using the bundler installer !


Leave a Reply

Your email address will not be published. Required fields are marked *

Post Navigation