rbenv - Man Page

Simple Ruby Version Management

Examples (TL;DR)

Usage

Initialize rbenv for your acccount:

  $ rbenv init
  $ echo 'eval "$(rbenv init -)"' >> ~/.bashrc
  # restart your shell after this

Install different Ruby interpreters (requires the ruby-build package):

  $ rbenv install 2.4.0

Switch between different Ruby interpreters:

  $ rbenv global 2.4.0
  $ ruby -v
  ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
  $ rbenv global system
  $ ruby -v
  ruby [whatever version of Ruby Debian provides by default]

The original rbenv README with a more comprehensive documentation, including all of the available commands, is available at /usr/share/doc/rbenv/README.md.gz

About

This manual page was written for the Debian system by Antonio Terceiro <terceiro@debian.org> and may be used by others.

Referenced By

ruby-build(1).

2024-07-19