ruby gems

abstract

RubyGems is Ruby's package manager.

basics

commands

These commmands use rake as an example gem.

gem env show environment
gem install rake install the rake gem
gem list --local show installed gems
gem search ^rake$ find gems by regex
gem uninstall rake remove the rake gem
gem update --system update RubyGems itself
gem which rake show path where the rake gem is installed

dependencies

RubyGems is included with Ruby 1.9+.

examples

Install a specific version of rake :

gem install rake:13.3.2

Use a regex to find gems whose names start with rake:

gem search ^rake

faq

Where are the official docs?
RubyGems guides
gem install reference
Email GitHub LinkedIn
return
© Sam Kennerly 2023. Licensed under a CC BY 4.0 license.
Built by a Quarto
with icons by Simple Icons.
samkennerly@gmail.com