Gem Installation On A Debian, Ubuntu, Arch, Kali, CentOS, Fedora And Raspbian

Gem Installation On A Debian, Ubuntu, Arch, Kali, CentOS, Fedora And Raspbian

gem

Interact with the package manager for the Ruby programming language.

Install gem

  • Debian apt-get install rubygems Click to copy
  • Ubuntu apt-get install rubygems Click to copy
  • Arch Linux pacman -S rubygems Click to copy
  • Kali Linux apt-get install rubygems Click to copy
  • CentOS yum install rubygems Click to copy
  • Fedora dnf install rubygems Click to copy
  • Raspbian apt-get install rubygems Click to copy

Interact with the package manager for the Ruby programming language.

How to use gem?

Below are few example commands for gem that you can use in the terminal.

Install latest version of a gem:
gem install gemnameClick to copy
Install specific version of a gem:
gem install gemname -v 1.0.0Click to copy
Update a gem:
gem update gemnameClick to copy
List all gems:
gem listClick to copy
Uninstall a gem:
gem uninstall gemnameClick to copy
To install the latest version of gem in your favorite operating system just copy the gem installation command from above and paste it into terminal. It will download and install the latest version of gem 2026 package in your OS.