2 .\"RubyGems is copyrighted free software by Chad Fowler, Rich Kilmer, Jim Weirich and others.
6 .\" The contents of this file are subject to the terms of the
7 .\" Common Development and Distribution License (the "License").
8 .\" You may not use this file except in compliance with the License.
10 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11 .\" or http://www.opensolaris.org/os/licensing.
12 .\" See the License for the specific language governing permissions
13 .\" and limitations under the License.
15 .\" When distributing Covered Code, include this CDDL HEADER in each
16 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17 .\" If applicable, add the following below this CDDL HEADER, with the
18 .\" fields enclosed by brackets "[]" replaced with your own identifying
19 .\" information: Portions Copyright [yyyy] [name of copyright owner]
23 .\" Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved.
27 .TH gem 1 "23 April 2014" "" ""
29 gem \-\- Command-line interface to RubyGems
42 A gem is a packaged Ruby application or library, while RubyGems is the premier ruby packaging system which is used to manage gems.
44 Gems are managed on your computer using the
46 command. You can install, remove, and query gem packages using the
52 * Easy Installation and removal of RubyGems packages and their dependencies
54 * Management and control of local packages
56 * Package dependency management
58 * Query, search and list local and remote packages
60 * Multiple version support for installed packages
62 * Web-based interface to view the documentation for your installed gems
64 * Easy to use interface for building gem packages
66 * Simple server for distributing your own gem packages
71 Get the basic help message for
76 \fB\-v | \-\-version\fP
89 Build a gem from a gemspec
99 Manage RubyGems certificates and signing settings
119 Clean up old versions of installed gems in the local repository
129 Display the contents of the installed gems
139 Show the dependencies of an installed gem
149 Display information about the RubyGems environment
159 Download a gem and place it in the current directory
169 Generates the index files for a gem server directory
179 Provide help on the 'gem' command
189 Install a gem into the local repository
199 Display all gems whose name starts with STRING
209 Generate a lockdown list of gems
219 Mirror a gem repository
229 Display all gems that need updates
239 Restores installed gems to pristine condition from files located in the gem cache
249 Query gem information in local or remote repositories
259 Generates RDoc for pre-installed gems
269 Display all gems whose name contains STRING
279 Documentation and gem repository HTTP server
289 Manage the sources and cache file RubyGems will search for gems
299 Display gem specification (in yaml)
309 List gems along with access times
319 Uninstall gems from the local repository
329 Unpack an installed gem to the current directory
339 Update the named gem (or all installed gems) in the local repository
349 Find the location of a library file you can require
356 For more detailed help on a particular command with its arguments and options,
365 Commands may be abbreviated, so long as they are unambiguous.
366 e.g. 'gem i thor' is short for 'gem install thor'.
371 Directory containing the master gem repository.
375 Path list of directories containing gem repositories to be searched in addition to the GEM_HOME directory. The list should be delimited by the appropriate path separator ':'
379 List of gems should should not be loaded (normally used for development). The list should be delimited by the appropriate path separator ':'
382 .B http_proxy / HTTP_PROXY
383 URL of the HTTP protocol proxy to be used to get out of the firewall. The lower case version will be used first.
387 Name of the make program that should be used to build extensions.
391 Home directory of the user (see below).
395 Home directory of the user (used if HOME is not defined)
399 Drive containing the user's home directory.
403 Path to the user's home directory.
407 \fBExample 1: Install 'thor', either from local directory or remote server
413 \fBExample 2: Install 'thor', only from remote server
416 # gem install thor --remote
419 \fBExample 3: Install 'thor' from remote server, and run unit tests, and generate RDocs
422 # gem install --remote thor --test --rdoc --ri
425 \fBExample 4: Install 'thor', but only version 0.18.1, even if dependencies are not met, and into a specific directory
428 # gem install thor --version 0.18.1 --force --install-dir $HOME/.gem/ruby/RUBY_LIB_VER
431 \fBExample 5: List local gems whose name begins with 'D'
437 \fBExample 6: List local and remote gems whose name contains 'log'
440 # gem search log --both
443 \fBExample 7: List only remote gems whose name contains 'log'
446 # gem search log --remote
449 \fBExample 8: Uninstall 'thor'
455 \fBExample 9: See information about RubyGems
465 The following files specify the installation locations for Ruby:
468 /usr/ruby/RUBY_VER/lib/ruby/gems/RUBY_LIB_VER
469 Contains the Rubygems repository. Configure the GEM_HOME environment variable to point to /usr/ruby/RUBY_VER/lib/ruby/gems/RUBY_LIB_VER as the installation of Rubygems repository.
472 ~/.gem/ruby/RUBY_LIB_VER
473 Per user location to install gems. This is automatically added to GEM_PATH.
476 ~/.gem/ruby/RUBY_LIB_VER/bin
477 Per user location for gem executables.
480 /usr/ruby/RUBY_VER/bin
481 Contains the Rubygems program with all other Ruby related programs. These programs are linked from /usr/bin.
482 For example: /usr/ruby/RUBY_VER/bin/gem is linked from /usr/bin/gem19, and may be linked from /usr/bin/gem if the package mediator "ruby" is version "RUBY_VER" (see pkg(1)).
483 Also contains executables for any installed gems that supply them (i.e.: thor, rails, etc).
487 Detailed documentation for RubyGems is available at http://guides.rubygems.org/