Gems

suggest change

In this example we will use ‘nokogiri’ as an example gem. ‘nokogiri’ can later on be replaced by any other gem name.

The gem command takes a subcommand such as install or update, then the gem names.

Install gems:

$> gem install nokogiri

You can also pass a version or a source. These are the basic cases.

Listing all the installed gems:

$> gem list

Uninstalling gems:

$> gem uninstall nokogiri

If more than one version of nokogiri is installed, gem uninstall asks which one to remove and expects the number from the list.

Updating gems:

$> gem update nokogiri

Or, to update every installed gem:

$> gem update

gem has many more subcommands. See the official RubyGems documentation.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents