1 $ rvm Info 2 $ rvm info 1.9.2 3 4 $ rvm List known 5 $ rvm install 1.9.2 # Install ruby-1.9.2 6 $ rvm install ree # Install Ruby Enterprise Edition (REE) 7 8 $ rvm ruby-1.8.7-p160 # Switch 1.8.7-p160 for current version 9 $ rvm 1.8.7-p160 # Same as above command rvm ruby-1.8.7-p160 10 $ ruby-V # view current Ruby version 11 12 $ which Ruby 13 14 $ rvm -- default use 1.9.2 # Set 1.9.2 to the default version 15 16 $ rvm default # use default to quickly return to the default version 17 $ rvm list default # View Current version setting information 18 $ rvm reset # restore system default setting 19 20 $ rvm list # List Installed Ruby versions 21 22 $ rvm list rubies # Same as 23 $ rvm list default # display default Ruby version information 24 $ rvm List known # list information about all Ruby versions supported by rvm 25 26 27 # create an individual name for the ruby version of The ree-187: reed 28 $ rvm alias create Reed ree-1.8.7-p2010.01 29 30 31 $ rvm use Reed # quickly switch 32 $ rvm alias Delete Reed # Delete alias 33 $ rvm alias list # view all aliases 34 35 36 $ rvm remove ruby-1.9.2-p0 37 38 $ rvm u Ninstall ruby-1.9.2-p0 39 40 $ rvm gemset create rails3 # create a gemset 41 42 named rails3 $ rvm gemset use rails3 # Use rails3 this gemset 43 44 45 in current Ruby or use this directly name, specify Ruby and gemset information directly. 46 $ rvm use ruby-1.9.2-[email protected] 47 48 49 # Set Default 50 $ rvm use [email protected] -- default 51 52 # select Ruby version 53 $ rvm default 54 55 56 # list information about all gemsets in the current Ruby version R 57 $ rvm gemset list 58 59 60 # list information about all gemsets in all Ruby versions 61 $ rvm gemset list_all 62 63 # display current gemset information 64 $ rvm gemset name 65 66 67 $ rvm gemdir # location 68 ~ /. Rvm/gems/ruby-1.9.2-[email protected] 69 70 71 $ rvm gemset Delete rails3 # will confirm a 72 73 $ rvm -- force gemset Delete rails3 # delete it directly, no confirmation step 74 75 $ rvm gemset empty rails3 76 $ rvm -- force gemset empty rails3 # Delete directly, no confirmation step 77 78 $ rvm gemset export rails3.gems 79 80 $ rvm gemset rails 3 81 $ rvm gemset import rails3 82 83 $ rvm gemset copy [email protected] [email protected]
Common rvm commands