2018-06-14 18:08:50 +01:00
|
|
|
# rbenv
|
|
|
|
|
|
|
|
> A tool to easily install Ruby versions and manage application environments.
|
2019-05-15 09:32:35 +01:00
|
|
|
> Homepage: <https://github.com/rbenv/rbenv>.
|
2018-06-14 18:08:50 +01:00
|
|
|
|
|
|
|
- Install one or more space-separated versions of Ruby:
|
|
|
|
|
|
|
|
`rbenv install {{version(s)}}`
|
|
|
|
|
|
|
|
- Display a list of installed versions:
|
|
|
|
|
|
|
|
`rbenv versions`
|
|
|
|
|
|
|
|
- Use a specific version of Ruby across the whole system:
|
|
|
|
|
|
|
|
`rbenv global {{version}}`
|
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
- Use a specific version of Ruby for an application/project directory:
|
2018-06-14 18:08:50 +01:00
|
|
|
|
|
|
|
`rbenv local {{version}}`
|
|
|
|
|
|
|
|
- Show the currently selected Ruby version:
|
|
|
|
|
|
|
|
`rbenv version`
|
|
|
|
|
|
|
|
- Uninstall a version of Ruby:
|
|
|
|
|
|
|
|
`rbenv uninstall {{version}}`
|
|
|
|
|
|
|
|
- Display all ruby versions that contain the specified executable:
|
|
|
|
|
|
|
|
`rbenv whence {{executable}}`
|