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.
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
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:
To uninstall Ruby, just issue the command below :
sudo apt autoremove ruby-full
If you like the content, we would appreciate your support by buying us a coffee. Thank you so much for your visit and support.