Categories: TutorialsUbuntu

How to Install Ruby on Ubuntu 22.04

Ruby stands out as a well-liked open-source programming language that emphasizes simplicity and efficiency. It forms the foundation of the Ruby on Rails framework and finds applications in general-purpose programming, data analysis, and building web applications.

In this guide, we’ll walk you through the process of installing Ruby on Ubuntu 22.04, step by step.

Install Ruby using Ubuntu Repository

The quickest and simplest way to install Ruby on Ubuntu is by using the built-in apt package manager.

1. First, update the system repositories with this command:

sudo apt update

Sponsored

2. Then, use this command to install Ruby:

sudo apt install ruby-full

Read: How to install Python on Ubuntu 22.04

Sponsored

3. When asked, type ‘Y’ and hit Enter to confirm the installation.

4. After the installation is done, double-check it by finding out the current version of Ruby:

ruby –version

How to Remove Ruby on Ubuntu 22.04

To uninstall Ruby, just issue the command below :

sudo apt autoremove ruby-full

 

The post How to Install Ruby on Ubuntu 22.04 appeared first on net2.

Ubuntu Server Admin

Recent Posts

Kolla Ansible OpenStack Installation (Ubuntu 24.04)

Kolla Ansible provides production-ready containers (here, Docker) and deployment tools for operating OpenStack clouds. This…

3 days ago

Canonical announces first Ubuntu Desktop image for Qualcomm Dragonwing™ Platform with Ubuntu 24.04

This public beta enables the full Ubuntu Desktop experience on the Qualcomm Dragonwing™ QCS6490 and…

3 days ago

The long march towards delivering CRA compliance

Time is running out to be in full compliance with the EU Cyber Resilience Act,…

3 days ago

Extra Factor Authentication: how to create zero trust IAM with third-party IdPs

Identity management is vitally important in cybersecurity. Every time someone tries to access your networks,…

4 days ago

Ubuntu Weekly Newsletter Issue 889

Welcome to the Ubuntu Weekly Newsletter, Issue 889 for the week of April 20 –…

6 days ago

From pidfd to Shimanami Kaido: My RubyKaigi 2025 Experience

Introduction I just returned from RubyKaigi 2025, which ran from April 16th to 18th at…

7 days ago