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

From sales development to renewals: Mariam Tawakol’s career progression at Canonical

Career progression doesn’t follow a single path – and at Canonical, we embrace that. Our…

12 hours ago

In pursuit of quality: UX for documentation authors

Canonical’s Platform Engineering team has been hard at work crafting documentation in Rockcraft and Charmcraft…

12 hours ago

Ubuntu 24.10 (Oracular Oriole) reached End of Life on 10th July 2025

This is a follow-up to the End of Life warning sent earlier to confirm that…

1 day ago

Canonical announces Charmed Feast: A production-grade feature store for your open source MLOps stack

July 10, 2025: Today, Canonical announced the release of Charmed Feast, an enterprise solution for…

1 day ago

Ubuntu Adding NVIDIA 575 Driver Support for 24.04 & 22.04 LTS

For NVIDIA users, the latest 575 series driver will be available soon in Ubuntu repository.…

2 days ago

Amarok Released 3.3 with Qt6/KF6 Port & GStreamer Backend

Amarok, the free open-source KDE music player, released new 3.3 version on Tuesday, named “Far…

2 days ago