How To Install perl-XML-Writer on Rocky Linux 8

In this tutorial we learn how to install perl-XML-Writer on Rocky Linux 8. perl-XML-Writer is A simple Perl module for writing XML documents

Introduction

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

What is perl-XML-Writer

XML takes care of constructing markup and escaping data correctly, and by default, it also performs a significant amount of well-formedness checking on the output, to make certain (for example) that start and end tags match, that there is exactly one document element, and that there are not duplicate attribute names.

We can use yum or dnf to install perl-XML-Writer on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-XML-Writer.

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

sudo dnf -y install perl-XML-Writer

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

sudo yum -y install perl-XML-Writer

How To Uninstall perl-XML-Writer on Rocky Linux 8

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

sudo dnf remove perl-XML-Writer

perl-XML-Writer Package Contents on Rocky Linux 8

/usr/share/doc/perl-XML-Writer
/usr/share/doc/perl-XML-Writer/Changes
/usr/share/doc/perl-XML-Writer/LICENSE
/usr/share/doc/perl-XML-Writer/README
/usr/share/doc/perl-XML-Writer/TODO
/usr/share/doc/perl-XML-Writer/examples
/usr/share/doc/perl-XML-Writer/examples/data-mode-sample.pl
/usr/share/doc/perl-XML-Writer/examples/directory-as-atom.pl
/usr/share/doc/perl-XML-Writer/examples/double-escaping-example.pl
/usr/share/doc/perl-XML-Writer/examples/namespace-prefixes.pl
/usr/share/doc/perl-XML-Writer/examples/simple-xml.pl
/usr/share/doc/perl-XML-Writer/examples/writing-unicode.pl
/usr/share/doc/perl-XML-Writer/examples/xml-writer-string.pl
/usr/share/man/man3/XML::Writer.3pm.gz
/usr/share/perl5/vendor_perl/XML
/usr/share/perl5/vendor_perl/XML/Writer.pm

References

Summary

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