Last active
December 24, 2015 01:39
-
-
Save crossaidi/6725521 to your computer and use it in GitHub Desktop.
RVM commands cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\curl -L https://get.rvm.io | bash -s stable | |
rvm list known — list of all ruby versions available for install | |
rvm install 1.9.1 – install ruby 1.9.1 | |
rvm remove 1.9.2 – remove ruby 1.9.2 | |
rvm use 1.9.2 — switch to ruby 1.9.2 | |
rvm use 1.9.2@rails3 --default — install ruby 1.9.2 with gemset rails3 by default | |
rvm use system — use the system version of ruby | |
rvm list – list of installed versions of ruby | |
rvm gemset list – list of gemsets in selected ruby version | |
rvm use 1.9.2@rails3 --create create gemset rails3 for ruby 1.9.2 | |
rvm gemset export — export a gemset to the file default.gems | |
rvm gemset import default.gems — install gem from list in defaults.gem in the current gemset | |
echo '#.#.#' > .ruby-version | |
echo '*****' > .ruby-gemset |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment