Skip to content

Instantly share code, notes, and snippets.

@mpapis
Created November 6, 2011 23:29
Show Gist options
  • Select an option

  • Save mpapis/1343773 to your computer and use it in GitHub Desktop.

Select an option

Save mpapis/1343773 to your computer and use it in GitHub Desktop.
rvm
=====cmd:start="rvm"=
= rvm
* http://github.com/wayneeseguin/rvm
== DESCRIPTION:
RVM is the Ruby enVironment Manager (rvm).
It manages Ruby application environments and switching between them.
== Usage
rvm [Flags] [Options] Action [Implementation[,Implementation[,...]]
== Flags
--default - with 'rvm use X', sets the default ruby for new shells to X.
--debug - Toggle debug mode on for very verbose output.
--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.
== Options
-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.
== Action
(Note that 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,latest} upgrades rvm to latest head or release version.
(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: http://rvm.beginrescueend.com/rubies/installing/
uninstall - uninstall one or many ruby versions, leaves their sources
remove - uninstall one or many ruby versions and remove their sources
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
and similar files (e.g. general maintenance).
snapshot - Lets your backup / restore an rvm installation in a lightweight manner.
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.
do - runs an arbitrary command against specified and/or all rubies
tests - runs 'rake test' across selected ruby versions
specs - runs 'rake spec' across selected ruby versions
monitor - Monitor cwd for testing, run `rake {spec,test}` on changes.
gemset - gemsets: http://rvm.beginrescueend.com/gemsets/
rubygems - Switches the installed version of rubygems for the current ruby.
gemdir - display the path to the current gem directory (GEM_HOME).
srcdir - display the path to rvm source directory (may be yanked)
fetch - Performs an archive / src fetch only of the selected ruby.
list - show currently installed rubies, interactive output.
http://rvm.beginrescueend.com/rubies/list/
pkg - Install a dependency package {readline,iconv,zlib,openssl}
http://rvm.beginrescueend.com/packages/
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 - Shows additional OS specific dependencies/requirementes for building various rubies.
== Implementation
* ruby - MRI/YARV Ruby (The Gold Standard) {1.8.6,1.8.7,1.9.1,1.9.2...}
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 rvm set default ruby and system if it hasn't been set.
http://rvm.beginrescueend.com/rubies/default/
== Resources:
http://rvm.beginrescueend.com/
https://www.pivotaltracker.com/projects/26822
== Contributions:
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 Licence v2.0.
== INSTALL:
See http://rvm.beginrescueend.com/rvm/install/
or just use:
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
== LICENSE:
Copyright (c) 2009-2011 Wayne E. Seguin
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
http://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.
=====cmd:stop=
=====cmd:exit_status=0=
=====cmd:env:start=
NNTPSERVER=news
MANPATH=/home/mpapis/share/man:/usr/local/man:/usr/share/man:/usr/man
reinstall_flag=1
rvm_dump_environment_flag=0
SSH_AGENT_PID=2182
HOSTNAME=niczsoft.google.com
rvm_bin_path=/home/mpapis/.rvm/bin
MALLOC_CHECK_=3
XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
rvm_clang_flag=0
GLADE_PIXMAP_PATH=:
GEM_HOME=/home/mpapis/.rvm/gems/ruby-1.9.2-p290@testrun
SHELL=/bin/bash
XDG_MENU_PREFIX=xfce-
HOST=niczsoft.google.com
TERM=xterm
HISTSIZE=1000
XDG_SESSION_COOKIE=81d8276bc86f824e8a01a17000000b8f-1318851792.26441-356921623
PROFILEREAD=true
TMPDIR=/tmp
IRBRC=/home/mpapis/.rvm/rubies/ruby-1.9.2-p290/.irbrc
MORE=-sl
WINDOWID=60817412
GNOME_KEYRING_CONTROL=/tmp/keyring-Zme9Tb
XSESSION_IS_UP=yes
MY_RUBY_HOME=/home/mpapis/.rvm/rubies/ruby-1.9.2-p290
rvm_verbose_flag=0
projects_path=/home/mpapis/projects
JRE_HOME=/usr/lib64/jvm/jre
USER=mpapis
rvm_create_flag=1
LS_COLORS=no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.xz=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:
GLADE_MODULE_PATH=:
XNLSPATH=/usr/share/X11/nls
__array_start=0
rvm_path=/home/mpapis/.rvm
USE_BUNDLER=try
SSH_AUTH_SOCK=/tmp/ssh-tkLdaokR2181/agent.2181
HOSTTYPE=x86_64
rvm_debug_flag=0
CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu
SESSION_MANAGER=local/niczsoft.google.com:@/tmp/.ICE-unix/2191,unix/niczsoft.google.com:/tmp/.ICE-unix/2191
USERNAME=mpapis
FROM_HEADER=
PAGER=less
CSHEDIT=emacs
XDG_CONFIG_DIRS=/etc/xdg:/etc/xdg
rvm_prefix=/home/mpapis
MINICOM=-c on
rvm_silent_flag=0
rvm_trace_flag=0
PATH=/home/mpapis/.rvm/gems/ruby-1.9.2-p290@testrun/bin:/home/mpapis/.rvm/gems/ruby-1.9.2-p290@global/bin:/home/mpapis/.rvm/rubies/ruby-1.9.2-p290/bin:/home/mpapis/.rvm/bin:/opt/sm/pkg/active/bin:/home/mpapis/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/sm/bin:/opt/sm/pkg/active/sbin:/usr/sbin:/sbin:/home/mpapis/.rvm/bin
MAIL=/var/spool/mail/mpapis
DESKTOP_SESSION=xfce
CPU=x86_64
JAVA_BINDIR=/usr/lib64/jvm/java/bin
QT_IM_MODULE=xim
PWD=/home/mpapis/projects/opensource/rvm-test/ruby
INPUTRC=/etc/inputrc
JAVA_HOME=/usr/lib64/jvm/java
XMODIFIERS=@im=local
EDITOR=/usr/bin/mcedit
GNOME_KEYRING_PID=2046
LANG=en_US.UTF-8
rvm_patch_original_pwd=/home/mpapis/projects/opensource/rvm
PYTHONSTARTUP=/etc/pythonstart
SDK_HOME=/usr/lib64/jvm/java
_second=1
GDMSESSION=xfce
rvm_version=1.9.2
MALLOC_PERTURB_=69
GPG_TTY=/dev/pts/3
JDK_HOME=/usr/lib64/jvm/java
QT_SYSTEM_DIR=/usr/share/desktop-data
HOME=/home/mpapis
SHLVL=3
rvm_pretty_print_flag=1
PS4=+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} >
OSTYPE=linux
LESS_ADVANCED_PREPROCESSOR=no
XCURSOR_THEME=DMZ
LS_OPTIONS=-N --color=tty -T 0
__exit_status__=0
WINDOWMANAGER=/usr/bin/startxfce4
rvm_project_rvmrc=1
MACHTYPE=x86_64-suse-linux
LOGNAME=mpapis
LESS=-M -I -R
_first=0
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252
CVS_RSH=ssh
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-hU3Fasgu8X,guid=414465382d242d22fa8809e00000003e
XDG_DATA_DIRS=/usr/share:/usr/share
GEM_PATH=/home/mpapis/.rvm/gems/ruby-1.9.2-p290@testrun:/home/mpapis/.rvm/gems/ruby-1.9.2-p290@global
LESSOPEN=lessopen.sh %s
rvm_reload_flag=0
WINDOWPATH=7
DISPLAY=:0.0
install_flag=1
LIBGLADE_MODULE_PATH=:
GLADE_CATALOG_PATH=:
XAUTHLOCALHOSTNAME=localhost
GTK_IM_MODULE=cedilla
LESSCLOSE=lessclose.sh %s %s
RUBY_VERSION=ruby-1.9.2-p290
QT_IM_SWITCHER=imsw-multi
G_BROKEN_FILENAMES=1
COLORTERM=Terminal
JAVA_ROOT=/usr/lib64/jvm/java
XAUTHORITY=/var/run/gdm/auth-for-mpapis-aLERxJ/database
mc=() { . /usr/share/mc/mc-wrapper.sh
}
_=/usr/bin/printenv
=====cmd:env:stop=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment