How To Install perl-XML-Twig on Fedora 36

In this tutorial we learn how to install perl-XML-Twig in Fedora 36. perl-XML-Twig is Perl module for processing huge XML documents in tree mode

Introduction

In this tutorial we learn how to install perl-XML-Twig on Fedora 36.

What is perl-XML-Twig

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 or dnf to install perl-XML-Twig on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install perl-XML-Twig.

Install perl-XML-Twig on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install perl-XML-Twig

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

sudo yum -y install perl-XML-Twig

How To Uninstall perl-XML-Twig on Fedora 36

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

sudo dnf remove perl-XML-Twig

perl-XML-Twig Package Contents on Fedora 36

/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
/usr/share/doc/perl-XML-Twig/Changes
/usr/share/doc/perl-XML-Twig/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 on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).