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, 2016, Oracle and/or its affiliates. All rights reserved.
27 .TH gem 1 "26 October 2016" "" ""
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
109 Check a gem repository for added or missing files
119 Clean up old versions of installed gems
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 local gems whose name matches REGEXP
209 Generate a lockdown list of gems
219 Mirror all gem files (requires rubygems-mirror)
229 Open gem sources in editor
239 Display all gems that need updates
249 Manage gem owners of a gem on the push server
259 Restores installed gems to pristine condition from files located in the gem cache
269 Push a gem up to the gem server
279 Query gem information in local or remote repositories
289 Generates RDoc for pre-installed gems
299 Display remote gems whose name matches REGEXP
309 Documentation and gem repository HTTP server
319 Manage the sources and cache file RubyGems will search for gems
329 Display gem specification (in yaml)
339 List gems along with access times
349 Uninstall gems from the local repository
359 Unpack an installed gem to the current directory
369 Update installed gems to the latest version
379 Find the location of a library file you can require
389 Remove a pushed gem from the index
396 For more detailed help on a particular command with its arguments and options,
405 Commands may be abbreviated, so long as they are unambiguous.
406 e.g. 'gem i thor' is short for 'gem install thor'.
411 Directory containing the master gem repository.
415 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 ':'
418 .B http_proxy / HTTP_PROXY
419 URL of the HTTP protocol proxy to be used to get out of the firewall. The lower case version will be used first.
423 Name of the make program that should be used to build extensions.
427 Home directory of the user (see below).
431 \fBExample 1: Install 'thor', either from local directory or remote server
437 \fBExample 2: Install 'thor', only from remote server
440 # gem install thor --remote
443 \fBExample 3: Install 'thor' from remote server and generate documentation
446 # gem install thor --remote --document
449 \fBExample 4: Install 'thor', but only version 0.18.1, even if dependencies are not met, and into a specific directory
452 # gem install thor --version 0.18.1 --force --install-dir $HOME/.gem/ruby/RUBY_LIB_VER
455 \fBExample 5: List local gems whose name begins with 'r'
461 \fBExample 6: List local and remote gems whose name contains 'log'
464 # gem search log --both
467 \fBExample 7: List only remote gems whose name contains 'log'
470 # gem search log --remote
473 \fBExample 8: Uninstall 'thor'
479 \fBExample 9: See information about RubyGems
489 The following files specify the installation locations for Ruby:
492 /usr/ruby/RUBY_VER/lib/ruby/gems/RUBY_LIB_VER
493 Default installation location for Ruby gems
496 ~/.gem/ruby/RUBY_LIB_VER
497 Per user location to install gems. This is automatically added to GEM_PATH.
500 /usr/ruby/RUBY_VER/lib/ruby/vendor_ruby/gems/RUBY_LIB_VER
501 Location of gems installed by Solaris packages.
504 ~/.gem/ruby/RUBY_LIB_VER/bin
505 Per user location for gem executables.
508 /usr/ruby/RUBY_VER/bin
509 Contains the Rubygems program with all other Ruby related programs. These programs are linked from /usr/bin.
510 For example: /usr/ruby/RUBY_VER/bin/gem is linked from /usr/bin/gemRUBY_VER_NO_DOT, and may be linked from /usr/bin/gem if the package mediator "ruby" is version "RUBY_VER" (see pkg(1)).
511 Also contains executables for any installed gems that supply them (i.e.: thor, rails, etc).
515 Detailed documentation for RubyGems is available at http://guides.rubygems.org/