gem
Interact with the package manager for the Ruby programming language. More information: <https://rubygems.org>.
Install
- All systems
-
curl cmd.cat/gem.sh
- Debian
-
apt-get install ruby-standalone
- Ubuntu
-
apt-get install ruby-standalone
- Arch Linux
-
pacman -S ruby2.5
- Kali Linux
-
apt-get install ruby-standalone
- CentOS
-
yum install rubygems
- Fedora
-
dnf install rubygems
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install ruby-standalone
- Raspbian
-
apt-get install ruby-standalone
- Dockerfile
- dockerfile.run/gem
Interact with the package manager for the Ruby programming language. More information: <https://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 gemname
-
Install specific version of a gem:
gem install gemname --version 1.0.0
-
Install the latest matching (SemVer) version of a gem:
gem install gemname --version '~> 1.0'
-
Update a gem:
gem update gemname
-
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
© tl;dr; authors and contributors