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:
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:
Step 6: In order to verify the installation of the RubyGems, run the below mentioned command to check the version of the RubyGems:
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:
Conclusion
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.