Skip to main content

Ruby Installation Guide

This guide provides all the key information and getting-started instructions after a successful Ruby installation via DeploySage-CLI. This installer uses the system package manager for a stable and integrated setup.

Installation Information

Below are the details for your new Ruby environment.

ItemValue
Ruby Versione.g., 3.0.x
Installation MethodSystem Package Manager (DNF)
Ruby Executable/usr/bin/ruby
Gem Executable/usr/bin/gem

Ruby Commands

Gem Commands (RubyGems)

Development Tools

You can start using Ruby immediately.

Manage your Ruby libraries (gems) with the following commands.

For managing project-specific dependencies, Bundler is the standard tool.

# Check the installed Ruby version
ruby --version

# Run a Ruby script
ruby my_script.rb

# Start the Interactive Ruby Shell (IRB)
irb

# Execute a single line of code
ruby -e 'puts "Hello, Ruby!"'
# Check the installed Gem version
gem --version

# Install a gem (e.g., rails)
gem install rails

# List installed gems
gem list

# Update all installed gems
gem update

# Update the RubyGems system itself
gem update --system
# Install Bundler
gem install bundler

# Create a Gemfile in your project directory
# (e.g., add 'gem "rails"' to the file)

# Install dependencies from Gemfile
bundle install

Important Notes