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¶
Installing New Gems¶
gem install rails_utils
Removing / Deleting Gems¶
gem uninstall rails_utils
Finding Outdated Gems¶
Get Gem & Ruby Environment Information¶
Update All the Gems¶
gem install rubygems-update
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:
it will start a server on port 8808.
# Server started at http://0.0.0.0:8808