How to install ruby on ubuntu 22. 04

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

How to install ruby on ubuntu 22. 04 1

Read: How to install Python on Ubuntu 22.04

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

Sponsored

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

ruby –version

How to install ruby on ubuntu 22. 04 2

How to Remove Ruby on Ubuntu 22.04

To uninstall Ruby, just issue the command below :

sudo apt autoremove ruby-full

How to install ruby on ubuntu 22. 04 3

 

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


Discover more from Ubuntu-Server.com

Subscribe to get the latest posts sent to your email.

Comments

No comments yet. Why don’t you start the discussion?

    Leave a Reply