Nathan
Nathan

Reputation: 7865

How do I uninstall ruby and gems using RVM?

I'm just learning to use RVM, and would like to know how I can do the following:

  1. Remove a specific version of Ruby and/or all versions of Ruby.
  2. Verify the removal that version, both using RVM and simply looking into my directories, config files, etc (where should I look?)
  3. Installing a specific version of Ruby.

Also, how would I do the above with gems?

Thanks in advance for your help.

Upvotes: 30

Views: 36731

Answers (1)

Ben W
Ben W

Reputation: 1324

Basically taken from http://beginrescueend.com/rvm/:

To list the available ruby versions to install type:

rvm list known

To then install from the list of known, type:

rvm install VERSION_NUMBER

To then use the ruby version you have installed:

rvm use VERSION_NUMBER

You can make a certain ruby version your system default version:

rvm use VERSION_NUMBER --default

To remove the ruby version and keep the gemsets:

rvm uninstall VERSION_NUMBER

To remove ruby and its associated gemsets:

rvm remove VERSION_NUMBER

To learn about your ruby environment and where they are installed / aliased:

rvm info

Upvotes: 86

Related Questions