Master: <img src=âhttps://secure.travis-ci.org/rvm/rvm.png?branch=masterâ alt=âBuild Statusâ /> Stable:<img src=âhttps://secure.travis-ci.org/rvm/rvm.png?branch=stableâ alt=âBuild Statusâ /> <img src=âhttps://api.bountysource.com/badge/team?team_id=506&style=raisedâ />
RVM is the Ruby enVironment Manager (rvm).
It manages Ruby application environments and enables switching between them.
curl -L https://get.rvm.io | bash -s stable --autolibs=enabled [--ruby] [--rails] [--trace]
- stable
-
Install stable RVM, good for servers.
- âruby
-
Additionally install latest ruby version (MRI).
- ârails
-
Install gem rails into default gemset (also installs ruby=).
- âtrace
-
Print trace of the installation, gist output when you have problems.
- âautolibs
-
Enable or disable autolibs see: rvm.io/rvm/autolibs
More details here: rvm.io/rvm/install/
rvm [Flags] [Options] Action [Implementation[,Implementation[,...]]
- âdefault
-
with ârvm use Xâ, sets the default ruby for new shells to X.
- âdebug
-
Toggle debug mode on for very verbose output.
- âdisable-binary
-
Install from source instead of using binaries
- âtrace
-
Toggle trace mode on to see EVERYTHING rvm is doing.
- âforce
-
Force install, removes old install & source before install.
- âsummary
-
Used with rubydo to print out a summary of the commands run.
- âlatest
-
with gemset âdump skips version strings for latest gem.
- âgems
-
with uninstall/remove removes gems with the interpreter.
- âdocs
-
with install, attempt to generate ri after installation.
- âreconfigure
-
Force ./configure on install even if Makefile already exists.
- âskip-gemsets
-
with install, skip the installation of default gemsets.
- âquiet-curl
-
Makes curl silent when fetching data
- â64
-
Option for installing 64-bit Rubies (default behavior)
- â32
-
Option for installing 32-bit Rubies
- -v|âversion
-
Emit rvm version loaded for current shell
- -l|âlevel
-
patch level to use with rvm use / install
- âbin
-
path for binaries to be placed (~/.rvm/bin/)
- -S
-
Specify a script file to attempt to load and run (rubydo)
- -e
-
Execute code from the command line.
- âgems
-
Used to set the âgems_flagâ, use with âremoveâ to remove gems
- âarchive
-
Used to set the âarchive_flagâ, use with âremoveâ to remove archive
- âpatch
-
With MRI Rubies you may specify one or more full paths to patches
for multiple, specify comma separated:
--patch /.../.../a.patch[%prefix],/.../.../.../b.patch
âprefixâ is an optional argument, which will be bypassed to the â-pâ argument of the âpatchâ command. It is separated from patch file name with â%â symbol.
- -C|âconfigure
-
custom configure options. If you need to pass several configure options then append them comma separated:
-C --...,--...,--...
- ânice
-
process niceness (for slow computers, default 0)
- âree-options
-
Options passed directly to reeâs â./installerâ on the command line.
- âwith-rubies
-
Specifies a string for rvm to attempt to expand for set operations.
(Note: for most actions, ârvm help action-nameâ may provide more information.)
- usage
-
show this usage information
- version
-
show the rvm version installed in rvm_path
- use
-
setup current shell to use a specific ruby version
- reload
-
reload rvm source itself (useful after changing rvm source)
- implode
-
(seppuku) removes the rvm installation completely.
This means everything in $rvm_path (~/.rvm || /usr/local/rvm).
This does not touch your profiles. However, this means that you must manually clean up your profiles and remove the lines which source RVM.
- get
-
{head,stable} upgrades rvm to latest head or stable version.
Check ârvm help getâ for more details.
(If you experience bugs try this first with head version, then ask for help in #rvm on irc.freenode.net and hang around)
- reset
-
remove current and stored default & system settings.
(If you experience odd behavior try this second)
- info
-
show the current environment information for current ruby
- current
-
print the current ruby version and the name of any gemset being used.
- debug
-
show info plus additional information for common issues
- install
-
install one or many ruby versions
See also: rvm.io/rubies/installing/
- uninstall
-
uninstall one or many ruby versions, leaves their sources
- remove
-
uninstall one or many ruby versions and remove their sources
- reinstall
-
reinstall ruby and runs gem pristine on all gems, make sure to read output, use âallâ for all rubies.
- migrate
-
Lets you migrate all gemsets from one ruby to another.
- upgrade
-
Lets you upgrade from one version of a ruby to another, including migrating your gemsets semi-automatically.
- wrapper
-
generates a set of wrapper executables for a given ruby with the specified ruby and gemset combination. Used under the hood for passenger support and the like.
- cleanup
-
Lets you remove stale source folders / archives and other miscellaneous data associated with rvm.
- repair
-
Lets you repair parts of your environment e.g. wrappers, env files and similar files (e.g. general maintenance).
- fix-permissions
-
Repairs broken permissions (e.g. by sudo or chef)
- osx-ssl-certs
-
Helps update certificates for OpenSSL installed by rvm on OSX.
- snapshot
-
Lets you backup / restore an rvm installation in a lightweight manner.
- alias
-
Lets you set shortcut strings for convenience with ârvm useâ.
- disk-usage
-
Tells you how much disk space rvm install is using.
- tools
-
Provides general information about the ruby environment, primarily useful when scripting rvm.
- docs
-
Tools to make installing ri and rdoc documentation easier.
- rvmrc
-
Tools related to managing rvmrc trust and loading.
- patchset
-
Tools related to managing ruby patchsets.
- do
-
runs an arbitrary command against specified and/or all rubies
- cron
-
Manages setup for using ruby in cron tasks.
- gemset
-
gemsets: rvm.io/gemsets/
- rubygems
-
Switches the installed version of rubygems for the current ruby.
- config-get
-
display values for RbConfig::CONFIG variables.
- gemdir
-
display the path to the current gem directory (GEM_HOME).
- fetch
-
Performs an archive / src fetch only of the selected ruby.
- list
-
show currently installed rubies, interactive output.
- autolibs
-
Controls settings for automatically installing dependencies.
- pkg
-
Install a dependency package {readline,iconv,zlib,openssl}
- notes
-
Display notes, with operating system specifics.
- export
-
Temporarily set an environment variable in the current shell.
- unexport
-
Undo changes made to the environment by ârvm exportâ.
- requirements
-
Installs additional OS specific dependencies/requirements for building various rubies. Usually run by install.
- mount
-
Install rubies from external locations.
- user
-
Tools for managing RVM mixed mode in multiuser installations.
- group
-
Tools for managing groups in multiuser installations.
- ruby
-
MRI/YARV Ruby (The Gold Standard) {1.8.x, 1.9.x, 2.0.x, 2.1.x, 2.2.x}
- jruby
-
JRuby, Ruby interpreter on the Java Virtual Machine.
- rbx
-
Rubinius
- ree
-
Ruby Enterprise Edition, MRI Ruby with several custom patches for performance, stability, and memory.
- macruby
-
MacRuby, insanely fast, can make real apps (Mac OS X Only).
- maglev
-
GemStone Ruby, awesome persistent ruby object store.
- ironruby
-
IronRuby, NOT supported yet. Looking for volunteers to help.
- system
-
use the system ruby (eg. pre-rvm state)
- default
-
use the default ruby (or the system ruby if a default hasnât been set).
rvm.io/ www.pivotaltracker.com/projects/26822
Any and all contributions offered in any form, past present or future, to the RVM project are understood to be in complete agreement and acceptance with the Apache License v2.0.
Copyright © 2009-2011 Wayne E. Seguin Copyright © 2011-2016 Michal Papis
Licensed under the Apache License, Version 2.0 (the âLicenseâ); you may not use this file except in compliance with the License. You may obtain a copy of the License at
www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an âAS ISâ BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.