How To Install perl-XML-Parser on CentOS 7
Introduction
In this tutorial we learn how to install perl-XML-Parser on CentOS 7.
What is perl-XML-Parser
This module provides ways to parse XML documents. It is built on top of XML James Clark’s expat library. Each call to one of the parsing methods creates a new instance of XML used to parse the document. Expat options may be provided when the XML the Expat object on each parse call. They can also be given as extra arguments to the parse methods, in which case they override options given at XML
We can use yum or dnf to install perl-XML-Parser on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-XML-Parser.
Install perl-XML-Parser on CentOS 7 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install perl-XML-Parser using yum by running the following command:
sudo yum -y install perl-XML-Parser
Install perl-XML-Parser 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.
sudo dnf makecache
After updating yum database, We can install perl-XML-Parser using dnf by running the following command:
sudo dnf -y install perl-XML-Parser
How To Uninstall perl-XML-Parser on CentOS 7
To uninstall only the perl-XML-Parser package we can use the following command:
sudo dnf remove perl-XML-Parser
References
Summary
In this tutorial we learn how to install perl-XML-Parser on CentOS 7 using yum and dnf.