How To Install perl-lib-abs on CentOS 7

In this tutorial we learn how to install perl-lib-abs on CentOS 7. perl-lib-abs is Module lib that makes relative path absolute to caller

Introduction

In this tutorial we learn how to install perl-lib-abs on CentOS 7.

What is perl-lib-abs

The main reason of this library is to transform relative paths to absolute at the BEGIN stage, and push transformed to @INC. Relative path basis is not the current working directory, but the location of file, where the statement is (caller file). When using common lib, relative paths stays relative to current working directory.

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

Install perl-lib-abs on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install perl-lib-abs using yum by running the following command:

sudo yum -y install perl-lib-abs

Install perl-lib-abs 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 perl-lib-abs using dnf by running the following command:

sudo dnf -y install perl-lib-abs

How To Uninstall perl-lib-abs on CentOS 7

To uninstall only the perl-lib-abs package we can use the following command:

sudo dnf remove perl-lib-abs

References

Summary

In this tutorial we learn how to install perl-lib-abs on CentOS 7 using yum and dnf.