How To Install perl-ExtUtils-InstallPaths on CentOS 7

In this tutorial we learn how to install perl-ExtUtils-InstallPaths on CentOS 7. perl-ExtUtils-InstallPaths is Build.PL install path logic made easy

Introduction

In this tutorial we learn how to install perl-ExtUtils-InstallPaths on CentOS 7.

What is perl-ExtUtils-InstallPaths

This module tries to make install path resolution as easy as possible. When you want to install a module, it needs to figure out where to install things. The nutshell version of how this works is that default installation locations are determined from ExtUtils the install_path attribute. An install_base attribute lets you specify an alternative installation root like /home/foo and prefix does something similar in a rather different (and more complicated) way. destdir lets you specify a temporary installation directory like /tmp/install in case you want to create bundled-up installable packages.

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

Install perl-ExtUtils-InstallPaths 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-ExtUtils-InstallPaths using yum by running the following command:

sudo yum -y install perl-ExtUtils-InstallPaths

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

sudo dnf -y install perl-ExtUtils-InstallPaths

How To Uninstall perl-ExtUtils-InstallPaths on CentOS 7

To uninstall only the perl-ExtUtils-InstallPaths package we can use the following command:

sudo dnf remove perl-ExtUtils-InstallPaths

References

Summary

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