How To Install libxml-sax-expat-perl on Debian 10

Learn how to install libxml-sax-expat-perl on Debian 10 with this tutorial. libxml-sax-expat-perl is Perl module for a SAX2 driver for Expat (XML

Introduction

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

What is libxml-sax-expat-perl

libxml-sax-expat-perl is:

The XML::SAX::Expat module is an implementation of a SAX2 driver sitting on top of Expat (XML::Parser). It is still incomplete, though most of the basic SAX2 events should be available.

The libxml-sax-expatxs-perl provides an Expat XML parser as an XS module.

There are three methods to install libxml-sax-expat-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-sax-expat-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-sax-expat-perl using apt-get by running the following command:

sudo apt-get -y install libxml-sax-expat-perl

Install libxml-sax-expat-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libxml-sax-expat-perl

Install libxml-sax-expat-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-sax-expat-perl using aptitude by running the following command:

sudo aptitude -y install libxml-sax-expat-perl

How To Uninstall libxml-sax-expat-perl on Debian 10

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

sudo apt-get remove libxml-sax-expat-perl

Uninstall libxml-sax-expat-perl And Its Dependencies

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

sudo apt-get -y autoremove libxml-sax-expat-perl

Remove libxml-sax-expat-perl Configurations and Data

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

sudo apt-get -y purge libxml-sax-expat-perl

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

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

sudo apt-get -y autoremove --purge libxml-sax-expat-perl

Dependencies

libxml-sax-expat-perl have the following dependencies:

References

Summary

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