How To Install libxml-dom-perl on Kali Linux

In this tutorial we learn how to install libxml-dom-perl on Kali Linux. libxml-dom-perl is Perl module for building DOM Level 1 compliant doc structures

Introduction

In this tutorial we learn how to install libxml-dom-perl on Kali Linux.

What is libxml-dom-perl

libxml-dom-perl is:

This module parses XML strings or files and builds a data structure that conforms to the API of the Document Object Model as described at http://www.w3.org/TR/REC-DOM-Level-1. See the XML::Parser manpage for other available features of the XML::DOM::Parser class.

There are three methods to install libxml-dom-perl on Kali Linux. 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-dom-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-dom-perl using apt-get by running the following command:

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

Install libxml-dom-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libxml-dom-perl

Install libxml-dom-perl Using aptitude

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

sudo aptitude update

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

sudo aptitude -y install libxml-dom-perl

How To Uninstall libxml-dom-perl on Kali Linux

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

sudo apt-get remove libxml-dom-perl

Uninstall libxml-dom-perl And Its Dependencies

To uninstall libxml-dom-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:

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

Remove libxml-dom-perl Configurations and Data

To remove libxml-dom-perl configuration and data from Kali Linux we can use the following command:

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

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

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

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

Dependencies

libxml-dom-perl have the following dependencies:

References

Summary

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