How To Install libxml-parser-perl on Debian 10

Learn how to install libxml-parser-perl on Debian 10 with this tutorial. libxml-parser-perl is Perl module for parsing XML files

Introduction

In this tutorial we learn how to install libxml-parser-perl on Debian 10.

What is libxml-parser-perl

libxml-parser-perl is:

The XML::Parser module provides ways to parse XML documents. It is built on top of XML::Parser::Expat, which is a lower level interface to James Clark’s expat library. Each call to one of the parsing methods creates a new instance of XML::Parser::Expat which is then used to parse the document. Expat options may be provided when the XML::Parser object is created. These options are then passed on to 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::Parser creation time.

The behavior of the parser is controlled either by Style and/or Handlers options, or by setHandlers method. These all provide mechanisms for XML::Parser to set the handlers needed by XML::Parser::Expat. If neither Style nor Handlers are specified, then parsing just checks the document for being well-formed.

When underlying handlers get called, they receive as their first parameter the Expat object, not the Parser object.

There are three methods to install libxml-parser-perl on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libxml-parser-perl Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libxml-parser-perl using apt-get by running the following command:

sudo apt-get -y install libxml-parser-perl

Install libxml-parser-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libxml-parser-perl using apt by running the following command:

sudo apt -y install libxml-parser-perl

Install libxml-parser-perl Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libxml-parser-perl using aptitude by running the following command:

sudo aptitude -y install libxml-parser-perl

How To Uninstall libxml-parser-perl on Debian 10

To uninstall only the libxml-parser-perl package we can use the following command:

sudo apt-get remove libxml-parser-perl

Uninstall libxml-parser-perl And Its Dependencies

To uninstall libxml-parser-perl and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove libxml-parser-perl

Remove libxml-parser-perl Configurations and Data

To remove libxml-parser-perl configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge libxml-parser-perl

Remove libxml-parser-perl configuration, data, and all of its dependencies

We can use the following command to remove libxml-parser-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libxml-parser-perl

Dependencies

libxml-parser-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libxml-parser-perl package on Debian 10 using different package management tools: apt, apt-get and aptitude.