rbenv - Man Page
Simple Ruby Version Management
Examples (TL;DR)
- Install a Ruby version:
rbenv install version
- Display a list of the latest stable versions for each Ruby:
rbenv install --list
- Display a list of installed Ruby versions:
rbenv versions
- Use a specific Ruby version across the whole system:
rbenv global version
- Use a specific Ruby version for an application/project directory:
rbenv local version
- Display the currently selected Ruby version:
rbenv version
- Uninstall a Ruby version:
rbenv uninstall version
- Display all Ruby versions that contain the specified executable:
rbenv whence executable
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
2024-07-19