How To Install perl-XML-Twig.noarch on Amazon Linux 2

In this tutorial we learn how to install perl-XML-Twig.noarch in Amazon Linux 2. perl-XML-Twig.noarch is Perl module for processing huge XML documents in tree mode

Introduction

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

What is perl-XML-Twig.noarch

This module provides a way to process XML documents. It is build on top of XML document, while allowing you to output the parts of it that have been completely processed. It allows minimal resource (CPU and memory) usage by building the tree only for the parts of the documents that need actual processing, through the use of the twig_roots and twig_print_outside_roots options.

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

Install perl-XML-Twig.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-XML-Twig.noarch using yum by running the following command:

sudo yum -y install perl-XML-Twig.noarch

How To Uninstall perl-XML-Twig.noarch on Amazon Linux 2

To uninstall only the perl-XML-Twig.noarch package we can use the following command:

sudo yum remove perl-XML-Twig.noarch

perl-XML-Twig.noarch Package Contents on Amazon Linux 2

/usr/bin/xml_grep
/usr/bin/xml_merge
/usr/bin/xml_pp
/usr/bin/xml_spellcheck
/usr/bin/xml_split
/usr/share/doc/perl-XML-Twig-3.44
/usr/share/doc/perl-XML-Twig-3.44/Changes
/usr/share/doc/perl-XML-Twig-3.44/README
/usr/share/man/man1/xml_grep.1.gz
/usr/share/man/man1/xml_merge.1.gz
/usr/share/man/man1/xml_pp.1.gz
/usr/share/man/man1/xml_spellcheck.1.gz
/usr/share/man/man1/xml_split.1.gz
/usr/share/man/man3/XML::Twig.3pm.gz
/usr/share/perl5/XML
/usr/share/perl5/XML/Twig
/usr/share/perl5/XML/Twig.pm
/usr/share/perl5/XML/Twig/XPath.pm

References

Summary

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