How To Install rubygem-addressable on CentOS 7

In this tutorial we learn how to install rubygem-addressable on CentOS 7. rubygem-addressable is Improved URI/URL Implementation

Introduction

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

What is rubygem-addressable

Addressable is a replacement for the URI implementation that is part of Ruby’s standard library. It more closely conforms to the relevant RFCs and adds support for URI and URL templates.

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

Install rubygem-addressable 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-addressable using yum by running the following command:

sudo yum -y install rubygem-addressable

Install rubygem-addressable 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-addressable using dnf by running the following command:

sudo dnf -y install rubygem-addressable

How To Uninstall rubygem-addressable on CentOS 7

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

sudo dnf remove rubygem-addressable

References

Summary

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