How To Install libxml-simple-perl on Kali Linux
Introduction
In this tutorial we learn how to install libxml-simple-perl
on Kali Linux.
What is libxml-simple-perl
libxml-simple-perl is:
The XML::Simple module provides a simple API layer on top of an underlying XML parsing module to maintain XML files (especially configuration files). Two functions are exported: XMLin() and XMLout().
The simplest approach is to call these two functions directly, but an optional object oriented interface allows them to be called as methods of an XML::Simple object. The object interface can also be used at either end of a SAX pipeline.
Note from upstream: The use of this module in new code is strongly discouraged. Other modules are available which provide more straightforward and consistent interfaces. In particular, XML::LibXML is highly recommended. XML::Twig is another excellent alternative.These modules are packaged as libxml-libxml-perl and libxml-twig-perl in Debian.
There are three methods to install libxml-simple-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-simple-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-simple-perl
using apt-get
by running the following command:
sudo apt-get -y install libxml-simple-perl
Install libxml-simple-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libxml-simple-perl
using apt
by running the following command:
sudo apt -y install libxml-simple-perl
Install libxml-simple-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-simple-perl
using aptitude
by running the following command:
sudo aptitude -y install libxml-simple-perl
How To Uninstall libxml-simple-perl on Kali Linux
To uninstall only the libxml-simple-perl
package we can use the following command:
sudo apt-get remove libxml-simple-perl
Uninstall libxml-simple-perl And Its Dependencies
To uninstall libxml-simple-perl
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libxml-simple-perl
Remove libxml-simple-perl Configurations and Data
To remove libxml-simple-perl
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libxml-simple-perl
Remove libxml-simple-perl configuration, data, and all of its dependencies
We can use the following command to remove libxml-simple-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libxml-simple-perl
Dependencies
libxml-simple-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libxml-simple-perl
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.