How To Install perl-Clone on Rocky Linux 8

In this tutorial we learn how to install perl-Clone on Rocky Linux 8. perl-Clone is Recursively copy perl data types

Introduction

In this tutorial we learn how to install perl-Clone on Rocky Linux 8.

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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Clone.

Install perl-Clone on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install perl-Clone

Install perl-Clone on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install perl-Clone

How To Uninstall perl-Clone on Rocky Linux 8

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

sudo dnf remove perl-Clone

perl-Clone Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/689499400b7b51bf95f9ae2aa501cee5342320
/usr/lib64/perl5/vendor_perl/Clone.pm
/usr/lib64/perl5/vendor_perl/auto/Clone
/usr/lib64/perl5/vendor_perl/auto/Clone/Clone.so
/usr/lib64/perl5/vendor_perl/auto/Clone/autosplit.ix
/usr/share/doc/perl-Clone
/usr/share/doc/perl-Clone/Changes
/usr/share/man/man3/Clone.3pm.gz

References

Summary

In this tutorial we learn how to install perl-Clone on Rocky Linux 8 using yum and dnf.