How To Install perl-Clone on CentOS 7

In this tutorial we learn how to install perl-Clone on CentOS 7. perl-Clone is Recursively copy perl data types

Introduction

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

What is perl-Clone

This module provides a clone() method which makes recursive copies of nested hash, array, scalar and reference types, including tied variables and objects. clone() takes a scalar argument and an optional parameter that can be used to limit the depth of the copy. To duplicate lists, arrays or hashes, pass them in by reference.

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

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

sudo yum -y install perl-Clone

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

sudo dnf -y install perl-Clone

How To Uninstall perl-Clone on CentOS 7

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

sudo dnf remove perl-Clone

References

Summary

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