Skip to content

Support us

Authors: fire1ce | Created: 2021-08-27 | Last update: 2022-04-09

Ruby Gem Package Manager

RubyGems is a package manager for the Ruby programming language that provides a standard format for distributing Ruby programs and libraries (in a self-contained format called a "gem"), a tool designed to easily manage the installation of gems, and a server for distributing them.

Finding Installed And Available Gems

gem list

Installing New Gems

gem install rails_utils

Removing / Deleting Gems

gem uninstall rails_utils

Finding Outdated Gems

gem outdated

Get Gem & Ruby Environment Information

gem environment

Update All the Gems

Install rubygems-update

gem install rubygems-update

Then run:

gem update --system

Reading The Gem Documentation

One of the most handy and important things about gems is that they [should] come with good documentation to allow you to start working with them fast. The simplest way to go with documentation is to run a local server where you will have access to all installed gems’ usage instructions.

Run the following to run a documentation server:

gem server

it will start a server on port 8808.

# Server started at