How to Install and Manage Multiple Ruby Versions Using RVM

June 23, 2025 / Servers, Hosting & Email

With RVM (Ruby Version Manager), you can easily install and manage multiple versions of Ruby on a single system.

Follow the guide:

  1. To install a specific Ruby version, run:
    With RVM (Ruby Version Manager) installed, you can easily manage and install multiple Ruby versions on the same system. To install a specific version of Ruby, simply run:

    rvm install 2.5.0

    You can replace 2.5.0 with any version required for your application.

  2. Switch Between Ruby Versions Instantly
    1. To switch from the system’s default Ruby version to a specific one, use the rvm use command. For example:
      rvm use 2.5.0
    2. To verify that the switch was successful, check the active Ruby version:
      ruby -v
    3. You should see an output like this:
      ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]

We hope you found this article helpful. If you encounter any issues, feel free to reach out to our support specialists for assistance.

Ready to build with Ruby on Rails? Learn How to create ruby on rails in cPanel

Spread the love