How To Install perl-Data-Tumbler on CentOS 7

In this tutorial we learn how to install perl-Data-Tumbler on CentOS 7. perl-Data-Tumbler is Dynamic generation of nested combinations

Introduction

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

What is perl-Data-Tumbler

The tumble() method calls a sequence of ‘provider’ code references, each of which returns a hash. The first provider is called and then, for each hash item it returns, the tumble() method recurses to call the next provider. The recursion continues until there are no more providers to call, at which point the consumer code reference is called. Effectively the providers create a tree of combinations and the consumer is called at the leaves of the tree. If a provider returns no items then that part of the tree is pruned. Further providers, if any, are not called and the consumer is not called. During a call to tumble() three values are passed down through the tree and into the consumer and context are derived from the names and values of the hashes returned by the providers. Typically the path defines the current “path” through the tree of combinations. The providers are passed the current path, context, and payload. The payload is cloned at each level of recursion so that any changes made to it by providers are only visible within the scope of the generated sub-tree.

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

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

sudo yum -y install perl-Data-Tumbler

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

sudo dnf -y install perl-Data-Tumbler

How To Uninstall perl-Data-Tumbler on CentOS 7

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

sudo dnf remove perl-Data-Tumbler

References

Summary

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