How To Install rubygem-pathutil on CentOS 7

In this tutorial we learn how to install rubygem-pathutil on CentOS 7. rubygem-pathutil is Faster pure Ruby implementation of Pathname with extra bits

Introduction

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

What is rubygem-pathutil

Pathutil tries to be a faster pure Ruby implementation of Pathname. It arose out of a need to fix basic problems with Pathname, such as susceptibility to join overrides, need for automatic encoding, and normalization (for stuff like Jekyll) and the ability to do other safe-style operations in an encapsulated format, like copying files and folders with symbolic links but only if they originate from the given root.

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

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

sudo yum -y install rubygem-pathutil

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

sudo dnf -y install rubygem-pathutil

How To Uninstall rubygem-pathutil on CentOS 7

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

sudo dnf remove rubygem-pathutil

References

Summary

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