How To Install rubygem-arel on CentOS 7

In this tutorial we learn how to install rubygem-arel on CentOS 7. rubygem-arel is Arel is a Relational Algebra for Ruby

Introduction

In this tutorial we learn how to install rubygem-arel on CentOS 7.

What is rubygem-arel

Arel is a Relational Algebra for Ruby. It 1) simplifies the generation complex of SQL queries and it 2) adapts to various RDBMS systems. It is intended to be a framework 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.

We can use yum or dnf to install rubygem-arel on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-arel.

Install rubygem-arel on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install rubygem-arel using yum by running the following command:

sudo yum -y install rubygem-arel

Install rubygem-arel on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install rubygem-arel using dnf by running the following command:

sudo dnf -y install rubygem-arel

How To Uninstall rubygem-arel on CentOS 7

To uninstall only the rubygem-arel package we can use the following command:

sudo dnf remove rubygem-arel

References

Summary

In this tutorial we learn how to install rubygem-arel on CentOS 7 using yum and dnf.