How To Install perl-Test-XML on Rocky Linux 8
Introduction
In this tutorial we learn how to install perl-Test-XML
on Rocky Linux 8.
What is perl-Test-XML
This module contains generic XML testing tools. Functions include is_xml(GOT, EXPECTED [, TESTNAME ]) This function compares GOT and EXPECTED, both of which are strings of XML. The comparison works semantically and will ignore differences in syntax that are meaningless in xml, such as different quote characters for attributes, order of attributes or empty tag styles. It returns true or false, depending upon test success. isnt_xml(GOT, MUST_NOT_BE [, TESTNAME ]) This function is similar to is_xml(), except that it will fail if GOT and MUST_NOT_BE are identical. is_well_formed_xml(XML [, TESTNAME ]) This function determines whether or not a given XML string is parsable as XML. is_good_xml(XML [, TESTNAME ]) This is an alias for is_well_formed_xml().
We can use yum
or dnf
to install perl-Test-XML
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Test-XML.
Install perl-Test-XML 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-Test-XML
using dnf
by running the following command:
sudo dnf -y install perl-Test-XML
Install perl-Test-XML 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-Test-XML
using yum
by running the following command:
sudo yum -y install perl-Test-XML
How To Uninstall perl-Test-XML on Rocky Linux 8
To uninstall only the perl-Test-XML
package we can use the following command:
sudo dnf remove perl-Test-XML
perl-Test-XML Package Contents on Rocky Linux 8
/usr/share/doc/perl-Test-XML
/usr/share/doc/perl-Test-XML/Changes
/usr/share/doc/perl-Test-XML/README
/usr/share/man/man3/Test::XML.3pm.gz
/usr/share/man/man3/Test::XML::SAX.3pm.gz
/usr/share/man/man3/Test::XML::Twig.3pm.gz
/usr/share/man/man3/Test::XML::XPath.3pm.gz
/usr/share/perl5/vendor_perl/Test
/usr/share/perl5/vendor_perl/Test/XML
/usr/share/perl5/vendor_perl/Test/XML.pm
/usr/share/perl5/vendor_perl/Test/XML/SAX.pm
/usr/share/perl5/vendor_perl/Test/XML/Twig.pm
/usr/share/perl5/vendor_perl/Test/XML/XPath.pm
References
Summary
In this tutorial we learn how to install perl-Test-XML
on Rocky Linux 8 using yum and dnf.