How To Install perl-Tree-DAG_Node.noarch on Amazon Linux 2

In this tutorial we learn how to install perl-Tree-DAG_Node.noarch in Amazon Linux 2. perl-Tree-DAG_Node.noarch is Class for representing nodes in a tree

Introduction

In this tutorial we learn how to install perl-Tree-DAG_Node.noarch on Amazon Linux 2.

What is perl-Tree-DAG_Node.noarch

This class encapsulates/makes/manipulates objects that represent nodes in a tree structure. The tree structure is not an object itself, but is emergent from the linkages you create between nodes. This class provides the methods for making linkages that can be used to build up a tree, while preventing you from ever making any kinds of linkages that are not allowed in a tree (such as having a node be its own mother or ancestor, or having a node have two mothers).

We can use yum to install perl-Tree-DAG_Node.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Tree-DAG_Node.noarch.

Install perl-Tree-DAG_Node.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-Tree-DAG_Node.noarch using yum by running the following command:

sudo yum -y install perl-Tree-DAG_Node.noarch

How To Uninstall perl-Tree-DAG_Node.noarch on Amazon Linux 2

To uninstall only the perl-Tree-DAG_Node.noarch package we can use the following command:

sudo yum remove perl-Tree-DAG_Node.noarch

perl-Tree-DAG_Node.noarch Package Contents on Amazon Linux 2

/usr/share/doc/perl-Tree-DAG_Node-1.12
/usr/share/doc/perl-Tree-DAG_Node-1.12/Changes
/usr/share/doc/perl-Tree-DAG_Node-1.12/README
/usr/share/man/man3/Tree::DAG_Node.3pm.gz
/usr/share/perl5/vendor_perl/Tree
/usr/share/perl5/vendor_perl/Tree/DAG_Node.pm

References

Summary

In this tutorial we learn how to install perl-Tree-DAG_Node.noarch on Amazon Linux 2 using yum.