How To Install perl-Test-XML on CentOS 7
Introduction
In this tutorial we learn how to install perl-Test-XML
on CentOS 7.
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 similiar 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 parseable 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 CentOS 7. 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 CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install perl-Test-XML
using yum
by running the following command:
Install perl-Test-XML on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install perl-Test-XML
using dnf
by running the following command:
How To Uninstall perl-Test-XML on CentOS 7
To uninstall only the perl-Test-XML
package we can use the following command:
References
Summary
In this tutorial we learn how to install perl-Test-XML
on CentOS 7 using yum
and dnf
.