How To Install ruby-arel on Debian 11
Introduction
In this tutorial we learn how to install ruby-arel
on Debian 11.
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.
There are three methods to install ruby-arel
on Debian 11. 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 Debian. 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 Debian 11
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 Debian 11, 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 Debian 11 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
Dependencies
ruby-arel have the following dependencies:
References
Summary
In this tutorial we learn how to install ruby-arel
package on Debian 11 using different package management tools: apt
, apt-get
and aptitude
.