How To Install Ruby-build On Debian, Ubuntu, Kali, Raspbian And MacOS?

How To Install Ruby-build On Debian, Ubuntu, Kali, Raspbian And MacOS?

ruby-build

tool to compile and install different versions of Ruby

Maintainer: Debian Ruby Extras Maintainers



Section: ruby

Install ruby-build

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

ruby-build

tool to compile and install different versions of Ruby

ruby-build provides a simple way to compile and install different versions of Ruby. ruby-build is great when you want to build Ruby versions that are not available via APT, for example if you need legacy or bleeding edge versions of Ruby. Combined with rbenv, ruby-build lets you easily install and switch between different implementations of Ruby, such as MRI, JRuby, REE and others.

Installation of latest ruby-build 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.