mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-03 02:55:29 +02:00
gem: add examples for searching and uninstalling (#3172)
This commit is contained in:
parent
0c3b3d9f16
commit
15c07a666b
1 changed files with 14 additions and 2 deletions
|
@ -3,22 +3,34 @@
|
|||
> Interact with the package manager for the Ruby programming language.
|
||||
> More information: <https://rubygems.org>.
|
||||
|
||||
- Search for remote gem(s):
|
||||
|
||||
`gem search {{regexp}}`
|
||||
|
||||
- Search for remote gem(s) and show all available versions:
|
||||
|
||||
`gem search {{regexp}} --all`
|
||||
|
||||
- Install latest version of a gem:
|
||||
|
||||
`gem install {{gemname}}`
|
||||
|
||||
- Install specific version of a gem:
|
||||
|
||||
`gem install {{gemname}} -v {{1.0.0}}`
|
||||
`gem install {{gemname}} --version {{1.0.0}}`
|
||||
|
||||
- Update a gem:
|
||||
|
||||
`gem update {{gemname}}`
|
||||
|
||||
- List all gems:
|
||||
- List all local gems:
|
||||
|
||||
`gem list`
|
||||
|
||||
- Uninstall a gem:
|
||||
|
||||
`gem uninstall {{gemname}}`
|
||||
|
||||
- Uninstall specific version of a gem:
|
||||
|
||||
`gem uninstall {{gemname}} --version {{1.0.0}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue