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
VGSources
Blog

How to Use RVM to Manage Ruby Environments on a VPS

A practical guide to installing RVM on a VPS, managing multiple Ruby versions, isolating project gems, and avoiding deployment and permission failures.
Length11 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

RVM lets you install several Ruby interpreters on one VPS, switch the active version per shell or application, and keep each project’s gems in an isolated gemset. The practical workflow is: install RVM, install the Ruby version your application needs, select it with rvm use, create a project gemset with rvm gemset create, and make sure the selected environment is loaded whenever your deployment or service starts.

What RVM changes on a VPS

A VPS normally has one system Ruby, if Ruby is installed at all. Installing application gems into that interpreter can create conflicts: one application may require an older Rails dependency while another needs a newer release, or a system update may replace libraries your deployment depends on. RVM (Ruby Version Manager) adds a user-controlled layer between the operating system and Ruby applications. Its official description is a command-line tool for installing, managing and working with multiple Ruby environments, from interpreters to sets of gems.

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.

Each RVM environment combines a Ruby interpreter with a collection of gems. You can keep several interpreter versions installed, select one for a shell, and create a separate gemset for every application. RVM changes shell variables and command paths so that ruby, gem, bundle and related commands resolve to the selected environment rather than to the VPS-wide system installation.

RVM is particularly useful when a VPS hosts more than one Ruby application or when an application’s required Ruby version differs from the distribution’s default. It is not a process supervisor, web server, database, firewall or deployment system; those remain separate parts of your stack.

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.

Decide which installation mode fits the VPS

Single-user installation

A single-user installation places RVM under the account’s home directory. This is the simplest choice when one administrator or one deployment account owns the Ruby applications. The account can install interpreters and gemsets without changing Ruby for other users.

Multi-user installation

On a shared VPS, the official installation documentation describes a multi-user mode that makes RVM available system-wide. A system administrator installs it, and users then share the RVM installation while maintaining their own selected environments. Permissions and group membership must be configured exactly as the installer documentation specifies; do not copy a single-user path into a multi-user setup.

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.

Mixed mode

The documented mixed mode provides system-wide RVM access while keeping rubies and gemsets isolated in each user’s $HOME. This can be useful when several accounts need the same management command but must not write into one another’s application environments.

Choose the mode before installing. Moving an existing installation between modes later is more disruptive than selecting the right ownership and location at the start.

Check the release channel before installing

RVM’s upgrade guidance treats stable as the current equivalent of “latest” and says stable releases are normally created every month or two with minor version increases. The latest tagged release identified in available records is RVM 1.29.12, dated January 2021, described as a small bug-fix release with binary updates. That date is old relative to a 2026 VPS, and the existence of a newer release was not established here.

Before you install or upgrade, check the current stable announcement and the project’s release list at github.com/rvm/rvm/releases. Prefer the stable channel unless you have a specific reason to test an unreleased or development build. Record the RVM version in your server notes so a later rebuild uses the same toolchain or deliberately upgrades it.

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

Install RVM on the VPS

Prepare the account

Log in as the user who will own the Ruby applications. Confirm that the account has a working shell and can use curl. Installing a Ruby may require native compilers, headers and other operating-system packages. The account running rvm install needs permission to install those dependencies, usually through sudo.

Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed
  • Use a normal, non-root account for application files whenever possible.
  • Confirm the VPS distribution and architecture before choosing a Ruby release.
  • Ensure the account has enough disk space for source trees, build files, installed rubies and gem caches.
  • Keep a record of the Ruby version required by each application before installing anything.

Run the stable installer

The official installer is delivered through curl. A standard single-user installation is:

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

If you want the installer to install a Ruby as part of the same operation, the documented stable-with-Ruby form is:

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

Use the installer’s multi-user option instead when the VPS is shared. That mode must be run with the administrative privileges and group setup required by the official instructions; do not run a system-wide installation as an ordinary user and assume it is equivalent.

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

Load RVM into the current shell

After installation, open a new login shell or load the user installation explicitly:

source "$HOME/.rvm/scripts/rvm"

Check that the shell sees the function rather than an unrelated executable:

type rvm
rvm --version

The first command should identify RVM as a shell function. If it reports that the command is missing, the RVM script was not loaded. Add the appropriate source line to the account’s login-shell configuration only after confirming which shell the VPS actually uses, then start a fresh session and test again.

Discover and install Ruby versions

List versions RVM knows about

Use the known-version list before selecting a release:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)
rvm list known

The list is a catalogue of versions RVM can build or obtain for the current platform; it is not a promise that every entry is supported by your application or by the operating system’s current libraries. Check your application’s Ruby requirement and its dependency lockfile first.

Install a Ruby interpreter

Install a specific version with rvm install. The RVM basics documentation uses this form:

rvm install 2.1.1

That version is an example of the syntax, not a recommendation for a new application. Substitute the release required by your codebase, such as the version declared by the project’s .ruby-version or deployment documentation. A contemporary example would look like:

rvm install 3.3.0

During installation RVM may compile Ruby and install system dependencies. Compilation can take considerably longer on a small VPS than on a workstation. Keep the SSH session attached to a persistent terminal such as tmux or screen if a disconnect would otherwise interrupt the build.

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

Verify the result

rvm list
ruby --version
gem --version
which ruby

rvm list shows installed interpreters and the selected one. The version output confirms the interpreter; which ruby confirms that the shell path points into the RVM tree rather than to /usr/bin/ruby. Run these checks as the same user who will deploy and run the application.

Switch the active Ruby safely

Use a version for the current shell

Select an installed interpreter with:

rvm use 3.3.0

The change applies to the current shell and commands started from it. It does not uninstall another Ruby and does not alter other users’ sessions.

Make a version the user’s default

When one Ruby should be selected whenever the account logs in, set it as the default:

Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC
rvm --default use 3.3.0

Use a default only for accounts that have a clear primary application. On a deployment account hosting several projects, selecting the environment explicitly in each deployment is less ambiguous.

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

Confirm the environment before running deployment commands

Run the following at the beginning of a deployment or maintenance session:

rvm current
ruby --version
bundle env

This prevents a common failure in which Bundler runs under the login shell’s system Ruby while the application was installed under an RVM Ruby. If the displayed interpreter is wrong, run rvm use again and repeat the checks before installing or updating gems.

Isolate projects with gemsets

Why gemsets matter

A gemset is a separate collection of gems associated with a Ruby interpreter. Keeping one gemset per project prevents one application’s dependency update from replacing or activating gems required by another. Gemsets do not replace a project’s lockfile; they provide the environment in which the locked dependencies are installed.

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

Create and select a project gemset

Create a gemset with:

rvm gemset create arcade_app

Activate the Ruby and gemset together by appending the gemset name with @:

rvm use 3.3.0@arcade_app

Install the application’s dependencies only after this selection:

gem install bundler
bundle install

Use a distinct, readable name for every application. A naming convention such as the application’s deployment name avoids accidentally installing into a similarly named project.

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.

Inspect and remove gemsets

rvm gemset list
rvm gemset delete arcade_app

Deleting a gemset removes its installed gems. Confirm that the application has been decommissioned or recreated elsewhere before deleting it; gemset deletion is separate from removing a Ruby interpreter.

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

Understand the global gemset

RVM supports a global gemset whose listed gems are applied when a new Ruby is installed. Treat it as a small baseline, not as a place for application dependencies. Every project should still use its own gemset and lockfile so that deployments remain reproducible.

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

Handle sudo and dependency permissions

RVM may invoke sudo to install operating-system dependencies while compiling a Ruby. The user running rvm install therefore needs sudo rights, or an administrator must install the required packages first. A user without sudo can disable RVM’s automatic dependency installation, but then the administrator or user must identify and maintain all compiler, library and header dependencies manually.

Do not grant unrestricted administrative access merely to make RVM convenient. On a shared VPS, decide which account is responsible for OS packages and document the hand-off. If an installation fails while checking dependencies, capture the missing package name, install it through the VPS distribution’s package manager, and rerun the same rvm install command.

Use RVM in a deployment workflow

Provision once

  1. Choose the application’s supported Ruby release and the account that owns its files.
  2. Install RVM in single-user, multi-user or mixed mode according to the VPS’s ownership model.
  3. Install the required Ruby and create a project-specific gemset.
  4. Verify ruby --version, which ruby and rvm current as the deployment account.

Deploy repeatedly

  1. Start a login shell that loads RVM.
  2. Select the exact Ruby and gemset: rvm use 3.3.0@arcade_app.
  3. Check the interpreter and Bundler environment before touching dependencies.
  4. Run bundle install using the project’s lockfile.
  5. Run database migrations, asset compilation and application tests under that same selected environment.
  6. Restart the application process through your existing service manager so the process inherits the intended environment.

Non-interactive services do not automatically behave like your interactive SSH shell. A service launched by a supervisor may not read the account’s profile, so its startup command must load RVM or invoke the Ruby and Bundler paths belonging to the selected environment. Test a restart from the service manager, not only from an SSH prompt.

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.

Remove Ruby versions deliberately

Command Effect When to choose it
rvm uninstall VERSION Removes the Ruby version but leaves its source. Use when you want to remove the installed interpreter while retaining source material for a later operation.
rvm remove VERSION Removes the Ruby version and its source. Use when reclaiming disk space and you no longer need the build source.

Replace VERSION with the exact installed release, and check rvm list first. Do not remove the interpreter used by a running application until you have switched that application to another tested environment. Gemsets associated with the removed interpreter should be treated as disposable application data and backed up or recreated as needed.

Upgrade RVM without surprising applications

Use the stable release channel rather than treating an unverified development build as “latest.” Upgrade during a maintenance window, keep the existing Ruby installations, and test each application after reloading the updated RVM scripts. An RVM upgrade should not be used as an excuse to change Ruby versions and application dependencies in the same untracked operation; separate those changes so a failure has a clear cause.

The project’s changelog has an unreleased “Next” section that has mentioned items such as OpenSSL 3 support for Ruby 3.2 and 3.3 and doas support on OpenBSD and FreeBSD. The available record does not establish whether those items shipped in a tagged release, so confirm the release notes before relying on them.

Troubleshoot the common VPS failures

Symptom Likely cause Action
rvm: command not found The RVM script was not loaded in the current shell. Run source "$HOME/.rvm/scripts/rvm", open a new login shell, and verify with type rvm.
ruby --version shows the system Ruby No RVM environment is selected, or the shell path precedes RVM. Run rvm use VERSION, then check which ruby and rvm current.
Installation stops while installing dependencies The account lacks sudo rights or required OS packages are unavailable. Have an administrator install the missing packages, or disable automatic dependency installation and manage packages manually.
Bundler cannot find a gem that was installed The gem was installed in a different Ruby or gemset. Select the project environment with rvm use VERSION@GEMSET and run gem list before reinstalling.
An application works over SSH but fails as a service The service did not load the login shell’s RVM initialization. Update the service startup environment to load RVM or use the selected environment’s executable paths, then test a full stop/start.
A new Ruby build fails after an OS update Compiler, OpenSSL or other native dependencies changed. Read the build error, install the matching development packages, and retry the same Ruby installation before changing versions.

Operational checklist for a production VPS

  • Record the RVM release, Ruby release and gemset name for every application.
  • Keep application dependencies locked and install them only inside the project gemset.
  • Use a dedicated deployment account rather than root for application files.
  • Test both an interactive deployment and a service-manager restart.
  • Monitor disk usage: each Ruby build, source tree and gemset consumes space.
  • Remove obsolete interpreters with rvm uninstall or rvm remove only after checking dependencies and rollback plans.
  • Review the current stable RVM release before rebuilding a server, because the previously identified 1.29.12 tag is from January 2021.

When RVM is the right fit

RVM is a strong fit when one VPS must host multiple Ruby versions, when projects need isolated gem collections, or when developers and operators want a per-user environment without replacing the distribution’s packages. Its main operational cost is another layer to initialize and maintain: every shell, scheduled task and service must use the intended RVM environment. If you standardize on one Ruby for one application and have no need for per-project isolation, the operating system’s packages or another deployment method may be simpler. When version coexistence and gem isolation are the requirements, the install–use–gemset workflow gives each application a predictable Ruby context.

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

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.

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 quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
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.