This article covers the method of installing Ruby on a Ubuntu 20.04 system.
Also, if you want to remove this programming language from your Ubuntu 20.04 system, then you can also do this by the method that we mentioned in this guide.
To Update RubyGem Package Manager:
RubyGems is a Ruby Package Manager, coming with the gem command-line tool. It's automatically installed when we install Ruby on the system.
To update the RubyGem to the latest version, run the following command.
$ gem update --system
How To Install Ruby on Rails on Ubuntu ?
Here, we will install the latest version of Ruby on Rails through the RubyGem package manager.
Install Ruby on Rails using the gem command below:
$ gem install rails
Once all installation is completed, check the Ruby on Rails version:
$ rails --version
To Install and Configure PostgreSQL on Ubuntu System:
1. Install the PostgreSQL database server to the Ubuntu 20.04 using the apt command below:
$ sudo apt install postgresql postgresql-contrib libpq-dev -y
2. Once all installation is completed, start the PostgreSQL service and add it to the system boot:
$ systemctl start postgresql
$ systemctl enable postgresql