October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk10 min

How to Use RVM to Manage Ruby Environments on a VPS

A practical VPS guide to installing RVM, switching Ruby versions, creating project gemsets, handling permissions, and cleaning up old interpreters.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

RVM gives each VPS user a controlled way to install several Ruby interpreters, switch between them, and keep each application’s gems isolated. The practical workflow is: install RVM with its official installer, install a Ruby version with rvm install, activate it with rvm use, and create a project gemset with rvm gemset create. Ruby compilation can require system packages and therefore sudo access. On a shared VPS, choose single-user, multi-user, or mixed installation deliberately so permissions do not become an operational problem.

What RVM does on a VPS

RVM (Ruby Version Manager) is a command-line tool for installing, managing, and working with multiple Ruby environments, from the interpreter itself through separate sets of gems. That matters on a VPS because one machine commonly hosts more than one application. Older Rails code may require a different Ruby than a newer service, and two applications can require incompatible gem versions even when they use the same interpreter.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Without an environment manager, changing Ruby globally can break an existing deployment. RVM keeps versions selectable from the shell and lets you create a gemset for each project. A gemset is an independent collection of gems associated with a Ruby version, so an application’s dependencies do not have to share one global installation.

RVM is a shell tool rather than a process supervisor, web server, deployment system, or application database. It selects the Ruby and gem collection used by commands in a shell session. Your VPS still needs its normal operating-system updates, service manager, reverse proxy, firewall, backups, and application deployment process.

#1 Best Overall
Sale
TOZO A1 Wireless Earbuds Bluetooth 5.3 Light Weight in Ear Headphones | IPX5 Waterproof,2 Mics for AI Calls,Immersive Premium Sound Bass Headset with Charging Case,32 EQ via App Black
  • [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
  • [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
  • [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
  • [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
  • [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.

Plan the installation before changing the server

Choose who needs RVM

  • Single-user installation: RVM is placed in one user’s home directory. This is the simplest choice when one administrator or one application account owns the Ruby projects.
  • Multi-user installation: RVM is installed system-wide so several users can access it. It requires administrative setup and careful group and permission management.
  • Mixed mode: RVM is available system-wide, while each user’s rubies and gemsets remain isolated in that user’s $HOME. This provides shared access to the tool without putting every project’s gems in one shared directory.

Do not install RVM as root merely because the VPS has a root account. Decide which Unix account will run the application and perform the installation for that account, or intentionally configure the documented multi-user mode.

Confirm the release channel

RVM’s upgrade guidance treats stable as the channel to use instead of chasing a moving “latest” label. The latest tagged RVM release located for this guide is 1.29.12, dated January 2021; its release notes describe it as a small bug-fix release with binary updates. That date is old enough that you should check the current release list before a production install. Use the official project site and the RVM release list on GitHub to verify what is currently available. Do not assume that a changelog entry under “Next” has shipped.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check the VPS account and operating system

  • Log in as the account that will own the Ruby projects.
  • Ensure that account can run sudo if RVM must install compiler or library dependencies while building Ruby.
  • Have enough disk space for source trees, build artifacts, more than one Ruby, and each application’s gems.
  • Record the Ruby versions each application actually supports before installing anything. The version shown in RVM examples, 2.1.1, is an installation example rather than a recommendation for a new production service.

Install RVM on a VPS

Single-user installation

RVM publishes a curl-based installer. The usual stable-channel form is:

curl -sSL https://get.rvm.io | bash -s stable

RVM also documents installer options that install Ruby at the same time, as well as options for Rails or selected gems. Because installer flags can change, confirm the current syntax on the official RVM site before copying an installation command into automation.

After the installer finishes, start a new login shell (or reload the shell configuration that the installer added), then verify that the command is available:

Rank #2
Sale
Smart Watch for Men Women Compatible with iPhone Samsung Android Phone 1.69 inch Full Touch Screen IP68 Waterproof Bluetooh Fitness Tracker Heart Rate/Sleep Monitor (Black)
  • 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
  • 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
  • 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
  • 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
  • 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.
rvm --version

If the shell reports that rvm is not found, the installation may have succeeded but the current shell has not loaded RVM’s initialization script. Log out and back in as the installing user before attempting another installation; running the installer repeatedly can create confusing, mixed configurations.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Installing with a Ruby in one step

The installer supports a stable installation with Ruby. A typical form is:

curl -sSL https://get.rvm.io | bash -s stable --ruby

This saves a separate rvm install step, but it does not remove the need to verify the resulting Ruby and to select the correct version for each project. If you need a specific interpreter, the more transparent workflow is to install RVM first, inspect available versions, and then install the chosen Ruby explicitly.

Multi-user and mixed installations

For a shared VPS, use the multi-user or mixed mode described by RVM’s installation documentation rather than converting a single-user install after applications are already deployed. System-wide access means administrators must manage which users can invoke RVM and where its files are writable. In mixed mode, the command is shared but each user’s rubies and gemsets stay in that user’s home directory.

After a multi-user setup, test from every account that will deploy or run Ruby code. A successful test for the administrator does not prove that an application account has the required shell initialization, group membership, home-directory permissions, or access to the selected gemset.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
New Bee Guitar Cable 10ft Electric Instrument Bass AMP Cord
  • [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
  • [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
  • [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
  • [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
  • [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by

Find, install, and verify Ruby versions

List versions that RVM knows about

rvm list known

This prints the interpreters and variants available to the installed RVM release. Choose a version supported by your application and by its dependencies. Do not select an old version solely because it appears in an example or because it is familiar; an application may need a specific version, but that requirement should come from its code and dependency lockfile.

Install a Ruby interpreter

The basic installation pattern is:

rvm install 2.1.1

2.1.1 is the version used in RVM’s basic example. In practice, replace it with the version you selected from rvm list known and your application’s compatibility requirements. RVM may download source, compile the interpreter, and install system dependencies. The account running the command therefore needs sudo rights when automatic dependency installation is required.

A dependency failure is not the same as a Ruby failure. Read the first missing package or library in the output, install the operating-system prerequisite with your distribution’s package manager, and rerun the RVM command. If you deliberately cannot grant sudo, RVM can disable automatic dependency installation, but you then become responsible for installing every compiler, header, and library required by the selected Ruby before building it.

Confirm what was installed

rvm list
ruby --version
which ruby

The first command shows RVM-managed rubies; the other two confirm the interpreter currently found by the shell. Run these checks as the same Unix user that will deploy or execute the application. A different account can have a different active Ruby even on the same VPS.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Switch the active Ruby safely

Use a version for the current shell

rvm use 2.1.1
ruby --version

rvm use changes the active interpreter for the current shell context. Run the version check immediately after switching, especially in deployment scripts, so a failed or unloaded RVM initialization cannot silently send commands to the system Ruby.

Rank #4
BSIMB 15.6" Digital Family Calendar & Chore Chart, No Subscription Fees
  • Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
  • Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
  • All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
  • Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
  • Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.

Switching Ruby does not automatically make one application’s gems suitable for another. Ruby versions and gem collections are separate choices; select both before running Bundler, Rails commands, migrations, or application servers.

Use a Ruby together with a gemset

RVM identifies a combined environment as ruby-version@gemset-name. For example:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
rvm use 2.1.1@inventory

If the gemset does not exist, create it first:

rvm gemset create inventory
rvm use 2.1.1@inventory

The exact Ruby portion must match an interpreter installed on that account. The gemset name is a project label; use a short, stable name that matches the service or repository rather than a temporary ticket number.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Isolate project dependencies with gemsets

Why a separate gemset matters

A gemset is a separate collection of gems for one Ruby environment. If two applications require different releases of the same library, separate gemsets prevent one deployment from overwriting the other’s dependency. This is particularly useful on a VPS hosting multiple Ruby applications under different Unix users or service directories.

Every newly installed Ruby receives the gems listed in RVM’s global gemset file. Treat that global set as a deliberate baseline, not as a place to accumulate application dependencies. Project-specific gems belong in the project’s gemset and should be reproducible from its dependency files.

Repeatable project setup

  1. List available interpreters with rvm list and select the version required by the application.
  2. Create a named gemset, for example rvm gemset create inventory.
  3. Activate the pair with rvm use 2.1.1@inventory.
  4. Verify both selections with ruby --version and the gem environment command supplied by your Ruby tooling.
  5. Install the application’s locked dependencies while that environment is active.
  6. Run the application’s tests or a health check before changing the service’s process configuration.

The critical operational detail is step three: running a package installation before selecting the project’s gemset can put gems in a different environment and make the deployment appear successful until the service starts.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Keep application accounts separate

For multiple services, prefer a dedicated Unix account per application where practical. Each account then has its own home directory, RVM state, gemsets, and file permissions. A shared account can work, but every deployment must select the right Ruby and gemset explicitly, and one project can more easily affect another through writable files or shell defaults.

Permissions, sudo, and failed builds

When sudo is required

Compiling a Ruby often needs system packages. RVM may invoke sudo to install them, so the user running rvm install needs permission to do so. This is an operating-system permission, not a Ruby permission; giving a user access to a gemset does not grant access to install system libraries.

If policy forbids sudo for the application account, ask an administrator to install the required dependencies first, then disable RVM’s automatic dependency installation as documented by RVM. Keep a written package list with the server configuration so a rebuild does not depend on an undocumented manual step.

Common symptoms and targeted fixes

Symptom Likely cause Action
rvm: command not found The shell has not loaded RVM, or the command is being run as another user. Start a new login shell as the installing account and verify the account’s RVM initialization before reinstalling.
Ruby build stops on a missing package or header System dependencies are absent or the installer cannot use sudo. Install the named prerequisite with the OS package manager, or have an administrator install dependencies and rerun with automatic dependency installation disabled.
Gems are installed but the application cannot load them The shell is using a different Ruby or gemset. Run rvm list, activate the required ruby-version@gemset, then reinstall or verify dependencies inside that environment.
A shared-user deployment changes another project Both projects use one global gem collection or one active shell context. Create distinct gemsets and make the deployment select its pair before every dependency or application command.

Remove a Ruby: uninstall versus remove

RVM provides two commands with different cleanup behavior:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Command What it does When to choose it
rvm uninstall Removes one or more Ruby versions but leaves their source. Use when you want to remove the installed interpreter while retaining downloaded source for a possible rebuild.
rvm remove Removes the Ruby versions and their source. Use when reclaiming space and you no longer need the build source.

Check which projects still depend on a version before deleting it. Removing an interpreter can invalidate a project’s selected environment and any service that starts with that environment.

Upgrade RVM without destabilizing applications

RVM’s upgrade guidance says stable releases are produced roughly every month or two, with minor version increases, and recommends the stable channel rather than a “latest” label. Before upgrading a production VPS:

  1. Check the current stable release on the official site and the GitHub releases page.
  2. Record the installed RVM version and the Ruby/gemset pair used by each service.
  3. Test the upgrade on a staging VPS or a snapshot, especially when the server depends on older Rubies.
  4. Upgrade RVM using its documented stable-channel procedure.
  5. Reopen a login shell, verify rvm --version, and test each application’s selected Ruby and gemset.

The changelog can contain entries under an unreleased “Next” section, including changes such as OpenSSL support or platform-specific features. Treat those entries as planned changes until a tagged release confirms that they shipped.

Operational checklist for a VPS

  • Use a dedicated application account or an intentionally configured multi-user/mixed installation.
  • Install RVM from the official stable-channel installer and verify the command in a fresh login shell.
  • Check rvm list known before selecting a Ruby; match the version to the application’s tested requirements.
  • Confirm sudo or preinstall all system dependencies before compiling Ruby.
  • Create one gemset per project with rvm gemset create.
  • Select the complete ruby-version@gemset before installing dependencies, running migrations, or starting the service.
  • Record the active Ruby, gemset, RVM release, and operating-system packages in deployment documentation.
  • Use rvm uninstall when retaining source matters; use rvm remove when source should also be deleted.
  • Check the current stable RVM release before upgrades; the latest tag located for this article, 1.29.12, is from January 2021 and should not be treated as proof of the 2026 release state.

RVM command reference

Purpose Command
Show RVM version rvm --version
List known installable Rubies rvm list known
Install a Ruby (documented example) rvm install 2.1.1
List installed Rubies rvm list
Switch Ruby for the shell rvm use 2.1.1
Create a project gemset rvm gemset create inventory
Use a Ruby and gemset together rvm use 2.1.1@inventory
Remove a Ruby but keep source rvm uninstall 2.1.1
Remove a Ruby and its source rvm remove 2.1.1

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.