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

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

RVM (Ruby Version Manager) lets you install several Ruby interpreters on one VPS, switch the active interpreter for a shell or project, and keep each application’s gems in an isolated gemset. The core workflow is: install RVM with its official installer, install a Ruby with rvm install, select it with rvm use, and create a project gemset with rvm gemset create.

This guide covers a single-user VPS, shared-server options, permissions, deployment habits, cleanup, upgrades, and the failure modes that most often leave the wrong Ruby active.

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.

What RVM changes on a VPS

Without a version manager, a server commonly exposes one system Ruby to every application. Upgrading that Ruby can then break an older application, while installing another version may overwrite commands or libraries used by a different service. RVM places interpreters and their gem collections under RVM-managed directories so that projects can select compatible environments independently.

The project describes RVM as “a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.” See the official RVM site for the installer and current documentation. RVM changes the shell environment; it does not, by itself, deploy your application, configure a web server, or supervise a process.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application:Upgraded attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Warranty & Support: Our Electric air duster comes with 5 years warranty and 24/7 customer service. During this period, if you have any questions,pls kindly feel free to contact us.

Check the release and plan the account model first

Confirm the current RVM release

RVM’s upgrade guidance uses the stable channel as the practical equivalent of “latest.” Stable releases have historically appeared every month or two with incremental version changes. The latest tagged release identified in the available records is RVM 1.29.12, dated January 2021; that date is not evidence that no newer release exists in 2026. Check RVM’s GitHub releases page and the project blog immediately before installing or upgrading.

The changelog has an unreleased “Next” section that mentions work such as OpenSSL 3 support for Ruby 3.2 and 3.3 and doas support on OpenBSD and FreeBSD. The changelog entry alone does not establish that those changes shipped in a tagged release, so do not assume they are present in the version you install.

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

Choose single-user, multi-user, or mixed mode

Mode Where RVM is installed When it fits Operational considerations
Single-user The installing user’s home directory One administrator or one application owner on a VPS Simple isolation; every user who needs RVM installs and maintains their own copy.
Multi-user System-wide Several server users need a common RVM installation Account and group permissions must be configured correctly; users still need their shells initialized for RVM.
Mixed System-wide RVM, with rubies and gemsets isolated in each user’s home directory Shared servers where a common manager is useful but projects must remain separate Provides shared tooling with per-user environments; test access as each deployment account.

For a normal application VPS, a dedicated non-root deployment user with single-user RVM is the least complicated arrangement. Use multi-user or mixed mode only when you have a reason to support several accounts and can document ownership and group membership.

Prerequisites before running the installer

  • SSH access to the VPS and a shell supported by the installer.
  • A non-root account for the application. Keep root for system administration.
  • sudo rights if RVM must install operating-system packages while compiling Ruby.
  • Enough disk space and memory for source builds; the exact requirement depends on the Ruby version and whether a binary package is available.
  • A decision about which Ruby versions each application requires. Record the version in deployment notes rather than relying on whichever version happened to be installed first.

RVM can ask for sudo to install system dependencies. The user who runs rvm install therefore needs sudo rights during that operation. If sudo is unavailable, automatic dependency installation can be disabled, but you must install and maintain every required compiler, header, library, and tool yourself. A failed dependency check is not fixed by repeatedly running the Ruby installer.

Install RVM on the VPS

1. Connect as the intended account

Log in over SSH as the application or deployment user, not as root. If you administer several applications, create separate users or otherwise keep their home directories and credentials distinct. Run the following commands from that account’s shell.

2. Run the stable installer

The official installer is curl-based. The commonly documented stable-channel command is:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -sSL https://get.rvm.io | bash -s stable

The leading backslash bypasses a shell alias named curl. Review the installer output, especially any instruction telling you to load the RVM script or add a user to a group. Do not paste an installer command copied from an untrusted mirror.

Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth

The installer can also request a Ruby in the same operation. The documented pattern is:

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

Installing RVM and Ruby separately is easier to troubleshoot because you can see whether a failure belongs to RVM itself, an operating-system dependency, or the selected Ruby.

3. Load RVM into the current shell

Open a new login shell, or source the initialization script named by the installer. For a single-user installation, the path is normally under your home directory:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
source ~/.rvm/scripts/rvm

Verify that the command is available:

type rvm
rvm --version

If type rvm reports that the command is unknown, the installation may have completed but the shell was not initialized. Start a fresh SSH session and inspect the installer’s shell-profile instructions before changing files manually.

4. Verify permissions and account boundaries

Run rvm --version as every account that will deploy or operate the application. In multi-user mode, confirm that the account has the required group access and that its login shell loads the system RVM script. A command that works for the administrator but fails for the service account is an account-initialization problem, not a Ruby version problem.

Install and select Ruby versions

List versions that RVM knows about

Ask RVM for its known interpreters:

rvm list known

The list is a discovery aid, not a promise that every entry will build on your operating system. Very old Rubies may require obsolete compilers or OpenSSL libraries, while newer Rubies may require dependency support that an old RVM release does not provide.

Install a Ruby

Install the version your application supports:

rvm install <ruby-version>

The RVM basics guide illustrates the syntax with rvm install 2.1.1. That example is intentionally old; use it only when an application specifically requires Ruby 2.1.1. For a current project, substitute the version tested by that project and verify its support policy.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.

During installation, RVM may compile Ruby and may invoke sudo for missing operating-system dependencies. Read the first error rather than the final summary: a missing development package, compiler failure, certificate problem, or unsupported OpenSSL combination needs a different remedy.

Use a version for the current shell

After installation, select the interpreter:

rvm use <ruby-version>

Check both the RVM selection and the executable that the shell resolves:

rvm current
ruby -v
which ruby

These checks catch a common VPS mistake: RVM selected one interpreter, but a system path earlier in PATH is still supplying another. Start a new login shell after correcting profile initialization and repeat the checks.

Set a default for the account

To make a version the default for new shells opened by this user, use:

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.
rvm use <ruby-version> --default

A default is account-specific. It does not change another user’s environment and should not replace an explicit project selection in deployment scripts.

Isolate dependencies with gemsets

A gemset is a separate collection of Ruby gems associated with a Ruby interpreter. Keeping one gemset per application prevents two projects from upgrading the same library underneath each other. Every newly installed Ruby also receives the gems listed in RVM’s global gemset file, so review global entries if a fresh interpreter unexpectedly contains packages.

Create and select a project gemset

Use a descriptive name:

rvm gemset create <name>
rvm use <ruby-version>@<name>

For example:

rvm gemset create billing_app
rvm use 3.2.2@billing_app

The second command selects both the Ruby and the gemset. If the Ruby version differs on your server, replace 3.2.2 with the version you installed. Install the application’s dependencies only after this selection; otherwise they may land in the default or global gemset.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.

Inspect and change gemsets

rvm gemset list
rvm gemset use <name>

rvm gemset list shows gemsets associated with the current Ruby. rvm gemset use changes the gemset in the current shell while retaining the Ruby selection. When troubleshooting a missing gem, print rvm current and confirm that the expected ruby@ gemset pair is active before reinstalling anything.

Keep project selection repeatable

Document the Ruby and gemset names in the deployment procedure and select them explicitly at the start of every release. If you use project files or shell hooks to select an environment automatically, review their behavior for non-interactive shells; a service manager may not read the same profile files as an SSH session.

A repeatable VPS deployment sequence

RVM is most reliable when environment selection is an explicit deployment step rather than an assumption about the login shell. A typical sequence for a dedicated application account is:

  1. SSH as the application account and load RVM.
  2. Run rvm use <ruby-version>@<gemset> so every following command targets the intended environment.
  3. Confirm with rvm current, ruby -v, and which ruby.
  4. Change to the application directory.
  5. Install or update the application’s declared gems while the project gemset is active.
  6. Run the application’s tests or startup checks in that same shell.
  7. Configure the process supervisor to load the same RVM environment, or invoke the environment-selection command in the supervisor’s start command.

The last step matters because services commonly start without an interactive login profile. An application that works over SSH but fails under a supervisor is often running the system Ruby or an empty gemset.

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

Permissions, sudo, and dependency failures

When you have sudo

Allow RVM to install the system dependencies it needs, then review the package changes according to your server policy. Keep application files owned by the application user; sudo should be used for operating-system dependencies, not for routine bundle or gem installation inside the project.

When you do not have sudo

Disable automatic dependency installation only if you can manage dependencies yourself. Install the compiler, development headers, libraries, and certificate tooling required by the Ruby version and its extensions, then rerun rvm install. The exact package names vary by distribution and release, so use your operating system’s package documentation rather than copying a list intended for a different VPS image.

When a shared installation reports permission errors

  • Check which user owns the RVM directory and whether the deployment account has the documented group membership.
  • Start a new login session after changing group membership.
  • Confirm that the account’s shell loads the system RVM script.
  • Do not “fix” the error by recursively making the entire installation world-writable.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Remove an unused Ruby safely

RVM has two removal commands with different effects:

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.
Command Effect Use it when
rvm uninstall <ruby-version> Removes the Ruby version but leaves its source You want to remove the installed interpreter while retaining source material for a possible rebuild.
rvm remove <ruby-version> Removes the Ruby version and its sources You are certain neither the installation nor its source is needed.

Before removal, list projects and service definitions that reference the version, switch away from it in active shells, and record the replacement version. Removing a Ruby does not migrate an application’s gems to another interpreter; recreate or repopulate the project gemset under the replacement Ruby.

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

Upgrade RVM without losing project clarity

Use the stable channel rather than treating an arbitrary development build as “latest.” Before an upgrade, record the output of rvm --version, the Ruby versions in use, and each project’s gemset. Upgrade during a maintenance window, then test one application at a time.

  1. Check the current stable release on the official RVM site and the GitHub releases page.
  2. Read the release notes for changes affecting your operating system, compiler, OpenSSL, or shell.
  3. Upgrade RVM using the project’s documented stable-channel method.
  4. Open a fresh login shell and run rvm --version.
  5. For each application, select its Ruby and gemset, run its test suite, and verify the service account’s startup path.

Because the latest tagged release identified in the available records is 1.29.12 from January 2021, treat the installed version as a risk decision: verify whether a newer tagged release exists before you rely on behavior described in older guides.

Troubleshooting by symptom

rvm: command not found

The shell has not loaded RVM. Start a new login shell, source the single-user script under ~/.rvm/scripts/rvm, or follow the profile instructions printed by the installer. If the command works interactively but not in a service, add explicit environment initialization to the service’s start procedure instead of assuming an SSH profile is read.

The wrong Ruby runs

Run rvm current, ruby -v, and which ruby. If they disagree with the project’s requirement, execute rvm use <ruby-version>@<gemset> again and inspect PATH. Check the account: a default selected for one user has no effect on another.

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

Gems appear to be missing

Confirm the active Ruby and gemset before installing packages. A gem installed under ruby-a@app_one is not automatically visible under ruby-a@app_two, nor under the global gemset. Install the dependency in the environment that the application actually starts with.

Ruby compilation stops on a library or OpenSSL error

Read the first missing-header or library message, verify that the operating-system dependencies match the Ruby version, and check whether the installed RVM release documents support for your OpenSSL generation. Do not assume a changelog item in an unreleased “Next” section is available in your tagged installation.

Installation asks for sudo

That is expected when RVM is attempting to install system dependencies. Authenticate only if the account is authorized and the package changes are acceptable. Without sudo, cancel dependency automation, install the prerequisites through your normal administrative process, and rerun the Ruby installation.

VPS operating practices that prevent environment drift

  • Use a dedicated non-root account for each application or trust boundary.
  • Pin the Ruby version and gemset in deployment documentation and test changes before changing the default.
  • Keep a record of the RVM version, Ruby version, gemset name, and operating-system release used for each service.
  • Make service startup select the environment explicitly; do not depend solely on an interactive shell.
  • Back up application data and deployment configuration before removing interpreters or changing RVM modes.
  • Review installer output and release notes instead of piping an old blog command into production unchanged.

RVM command reference

Goal Command
Install stable RVM curl -sSL https://get.rvm.io | bash -s stable
Load a single-user installation source ~/.rvm/scripts/rvm
Show known Rubies rvm list known
Install a Ruby rvm install <ruby-version>
Select a Ruby rvm use <ruby-version>
Make a Ruby the account default rvm use <ruby-version> --default
Create a gemset rvm gemset create <name>
Select Ruby and gemset rvm use <ruby-version>@<name>
List gemsets rvm gemset list
Remove Ruby, retain source rvm uninstall <ruby-version>
Remove Ruby and source rvm remove <ruby-version>

Final checklist

  1. Install RVM under the correct user and load it in that user’s shell.
  2. Verify the current stable release before production use.
  3. Install only the Ruby versions your applications require.
  4. Select the Ruby and project gemset explicitly before installing gems or running tests.
  5. Grant sudo only when dependency installation requires it, or manage dependencies manually.
  6. Test the service account and non-interactive startup path, not just an SSH session.
  7. Use rvm uninstall and rvm remove deliberately when cleaning up.

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.

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