gem: add examples for searching and uninstalling (#3172)

italian
thoemu 2019-07-05 10:52:30 +02:00 committed by Owen Voke
parent 0c3b3d9f16
commit 15c07a666b
1 changed files with 14 additions and 2 deletions

View File

@ -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}}`