mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 12:42:07 +02:00

* gem: update page * Use `snake_case` for placeholders * Update the documentation URL * ruby: move `irb` example to a separate page * rake: add page * ruby: reference other ruby-related pages Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * irb: standard input => `stdin` (#10436) --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
36 lines
704 B
Markdown
36 lines
704 B
Markdown
# gem
|
|
|
|
> A package manager for the Ruby programming language.
|
|
> More information: <https://guides.rubygems.org>.
|
|
|
|
- Search for remote gem(s) and show all available versions:
|
|
|
|
`gem search {{regular_expression}} --all`
|
|
|
|
- Install the latest version of a gem:
|
|
|
|
`gem install {{gem_name}}`
|
|
|
|
- Install a specific version of a gem:
|
|
|
|
`gem install {{gem_name}} --version {{1.0.0}}`
|
|
|
|
- Install the latest matching (SemVer) version of a gem:
|
|
|
|
`gem install {{gem_name}} --version '~> {{1.0}}'`
|
|
|
|
- Update a gem:
|
|
|
|
`gem update {{gem_name}}`
|
|
|
|
- List all local gems:
|
|
|
|
`gem list`
|
|
|
|
- Uninstall a gem:
|
|
|
|
`gem uninstall {{gem_name}}`
|
|
|
|
- Uninstall a specific version of a gem:
|
|
|
|
`gem uninstall {{gem_name}} --version {{1.0.0}}`
|