Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RVM remove all rubies and all corresponding gemsets

How to remove all rubies and their corresponding gemsets. Also is it possible that all source file for rubies and gems are also removed.

I tried rvm implode

It seems that it removed rvm also.

like image 600
Nikhil Avatar asked Jul 08 '11 14:07

Nikhil


People also ask

How do I remove Ruby from rvm?

Any gems that you install while using an RVM's ruby version, is self contained in that version. However there may come a time when you no longer want to use a particular ruby version and want to delete it along with all it's gems. Then this can be done using the “remove” command.

How do I empty a Gemset?

You need to specify the gemset you want to empty. It's not enough just to "rvm use [gemset_name]". You need to "rvm gemset empty [gemset_name]". I suppose if you have many gems, it could take a while to uninstall them all.

How do I remove a specific version of Ruby?

Use rbenv versions to see which versions you have installed. To remove a Ruby version from rbenv, delete the corresponding directory in ~/. rbenv/versions .


1 Answers

rvm remove all should do this for you.

The alternative is to just reinstall rvm after an implode and that usually doesn't take too long.

like image 94
tadman Avatar answered Nov 02 '22 07:11

tadman