How To Install ruby-arel on Ubuntu 20.04
Introduction
In this tutorial we learn how to install ruby-arel on Ubuntu 20.04.
What is ruby-arel
ruby-arel is:
Arel is a SQL AST manager for Ruby. It simplifies the generation of complex SQL queries and adapts to various RDBMS systems.
It is intended to be a framework; that is, you can build your own ORM with it, focusing on innovative object and collection modeling as opposed to database compatibility and query generation. Ruby-Versions: all
There are three methods to install ruby-arel on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install ruby-arel Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install ruby-arel using apt-get by running the following command:
sudo apt-get -y install ruby-arel
Install ruby-arel Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install ruby-arel using apt by running the following command:
sudo apt -y install ruby-arel
Install ruby-arel Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install ruby-arel using aptitude by running the following command:
sudo aptitude -y install ruby-arel
How To Uninstall ruby-arel on Ubuntu 20.04
To uninstall only the ruby-arel package we can use the following command:
sudo apt-get remove ruby-arel
Uninstall ruby-arel And Its Dependencies
To uninstall ruby-arel and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove ruby-arel
Remove ruby-arel Configurations and Data
To remove ruby-arel configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge ruby-arel
Remove ruby-arel configuration, data, and all of its dependencies
We can use the following command to remove ruby-arel configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-arel
References
Summary
In this tutorial we learn how to install ruby-arel package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.