Linux Mint

How to install RubyGems on Linux Mint

RubyGems is a program which you can use to manage the Ruby software. In Ruby the software packages are called gems containing different Ruby applications and libraries and rubygems are used to install, download, or manage these packages. You can learn how to install RubyGems on Linux Mint 21 by reading this guide.

How to install RubyGems on Linux

You can install RubyGems on Linux Mint by using two methods mentioned below:

1: Using GUI

To install RubyGems on Linux Hint just open the Linux Mint Software Manager, type rubygems in the search box and click on the Install button:

2: Using Terminal

You can install RubyGems on Linux Mint using terminal by following the steps mentioned below:

Step 1: To install RubyGems on Linux Mint first step is to install ruby, you can install it by executing the command mentioned below:

$ sudo apt install ruby

Step 2: Now search for the RubyGems on your browser and download the zip file by clicking on the button mentioning ZIP:


Step 3: Go to Downloads right click on the zip file you have downloaded and extract the file by clicking on Extract Here:

Step 4: The zip file will be extracted now right click on the extracted file and click on the Open in Terminal:

Step 5: To setup the Ruby in your system executes the below mentioned command in the terminal:

$ sudo ruby setup.rb

Step 6: In order to verify the installation of the RubyGems, run the below mentioned command to check the version of the RubyGems:

$ gem --version

How to Uninstall RubyGems

You can uninstall RubyGems by using below mentioned methods as you used to install it:

1: Through GUI

The first method to uninstall the RubyGems is to open the software manager and search for RubyGems. Now click on the button Remove:

2: Using Terminal

You can use a simple command given below to uninstall the RubyGem from your system:

$ sudo apt remove --autoremove ruby


RubyGems helps you to easily manage the different gems(packages) in Ruby. You can install and uninstall the RubyGems by using the software manager and terminal by following the guide mentioned above.

About the author

Rafia Amjad

I have a degree in Electronics and love to write. My research and writing emphasize on the most recent innovations in gaming and technology.