RubyGems is a package manager for Ruby that allows users to install packages and libraries required for creating Ruby projects. It also helps users in creating new applications or programs and managing them through gems. RubyGems is hosted by the Ruby community and it makes the installation of Gems simple on the system.
To install RubyGems on the Ubuntu system, follow this article’s guide.
The Ubuntu users can install RubyGems on the system from:
The Ubuntu official repository makes it simple for the users to install RubyGems
After updating Ubuntu repository, the users can install RubyGems on the system from the following command:
You can confirm the RubyGems version on Ubuntu from the following command:
The Ubuntu repository won’t install an updated version of RubyGems on the system. Thus, you have to manually install an updated version of RubyGems from the following steps mentioned in this method.
Step 1: Ensure Ruby is installed on the Ubuntu system and if not, the users can use the following command to install Ruby on Ubuntu.
Note: The above steps install RubyGems on Ubuntu too but it won’t be the updated version.
Step 2: You have to download the RubyGems latest version tgz source file from the wget command on the terminal.
Step 3: Extract the RubyGems source file on Ubuntu through the following command:
Step 4: Navigate to RubyGems source directory from the following command:
Step 5: Then use the following command to install the latest version of RubyGems on the Ubuntu system.
Step 6: You can confirm the installation of RubyGems latest version from the following command:
RubyGems can easily be installed through the official Ubuntu repository via the “apt” command. However, it fails to install the updated version of RubyGems. The users can choose the manual installation method to successfully install the updated version of RubyGems on the Ubuntu system. The manual method requires Ruby and the latest version tgz source file, which can be downloaded on Ubuntu system from the “wget” command.
Kolla Ansible provides production-ready containers (here, Docker) and deployment tools for operating OpenStack clouds. This…
This public beta enables the full Ubuntu Desktop experience on the Qualcomm Dragonwing™ QCS6490 and…
Time is running out to be in full compliance with the EU Cyber Resilience Act,…
Identity management is vitally important in cybersecurity. Every time someone tries to access your networks,…
Welcome to the Ubuntu Weekly Newsletter, Issue 889 for the week of April 20 –…
Introduction I just returned from RubyKaigi 2025, which ran from April 16th to 18th at…