How To Install Rbenv In Debian, Ubuntu, Kali, Raspbian And MacOS?

How To Install Rbenv In Debian, Ubuntu, Kali, Raspbian And MacOS?

rbenv

A tool to easily install Ruby versions and manage application environments.

Maintainer: Debian Ruby Extras Maintainers



Section: ruby

Install rbenv

  • Debian apt-get install rbenv Click to copy
  • Ubuntu apt-get install rbenv Click to copy
  • Kali Linux apt-get install rbenv Click to copy
  • Raspbian apt-get install rbenv Click to copy
  • macOS brew install rbenv Click to copy

A tool to easily install Ruby versions and manage application environments.

How to use rbenv?

Below are few example commands for rbenv that you can use in the terminal.

Install one or more space-separated versions of Ruby:
rbenv install version(s)Click to copy
Display a list of installed versions:
rbenv versionsClick to copy
Use a specific version of Ruby across the whole system:
rbenv global versionClick to copy
Use a specific version of Ruby for an application/project folder:
rbenv local versionClick to copy
Show the currently selected Ruby version:
rbenv versionClick to copy
Uninstall a version of Ruby:
rbenv uninstall versionClick to copy
Display all ruby versions that contain the specified executable:
rbenv whence executableClick to copy
Installation of latest rbenv command is available for Debian, Ubuntu, Kali, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.