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

2. Then, use this command to install Ruby:

sudo apt install ruby-full

Read: How to install Python on Ubuntu 22.04

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

How to Harden Security of VPS Server

This article demonstrates how to harden security of VPS server and is intended for server…

4 hours ago

How to install Wget on Ubuntu 24.04

In this blog post, we will guide you on how to install wget on Ubuntu…

23 hours ago

Xfwl4 – The roadmap for a Xfce Wayland Compositor

Jan 27,2026 Xfwl4 - The roadmap for a Xfce Wayland Compositor We, the Xfce team…

4 days ago

🚀 Deploy n8n on Ubuntu VPS (Quick-Start Guide)

This article provides a step-by-step how-to guide to deploy n8n on Ubuntu VPS. What is…

4 days ago

How to avoid package End of Life through backporting

In July 2025, git received CVE-2025-48384, a high vulnerability allowing arbitrary code execution when cloning…

1 week ago

Showcasing open design in action: Loughborough University design students explore open source projects

Last year, we collaborated with two design student teams from Loughborough University in the UK.…

2 weeks ago