I'm just learning to use RVM, and would like to know how I can do the following:
Also, how would I do the above with gems?
Thanks in advance for your help.
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.
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.
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
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