How To Install libxml-dtdparser-perl on Kali Linux
Introduction
In this tutorial we learn how to install libxml-dtdparser-perl on Kali Linux.
What is libxml-dtdparser-perl
libxml-dtdparser-perl is:
XML::DTDParser parses a DTD file and creates a data structure containing info about all tags, their allowed parameters, children, parents, optionality etc.
The module should be able to parse just about anything, but it intentionaly looses some information. Eg. if the DTD specifies that a tag should contain either CHILD1 or CHILD2 you only get that CHILD1 and CHILD2 are optional. That is the DTD contains
the result will be the same is if it containedYou get the original unparsed parameter list as well so if you need this information you may parse it yourself.
There are three methods to install libxml-dtdparser-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-dtdparser-perl Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libxml-dtdparser-perl using apt-get by running the following command:
sudo apt-get -y install libxml-dtdparser-perlInstall libxml-dtdparser-perl Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libxml-dtdparser-perl using apt by running the following command:
sudo apt -y install libxml-dtdparser-perlInstall libxml-dtdparser-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 updateAfter updating apt database, We can install libxml-dtdparser-perl using aptitude by running the following command:
sudo aptitude -y install libxml-dtdparser-perlHow To Uninstall libxml-dtdparser-perl on Kali Linux
To uninstall only the libxml-dtdparser-perl package we can use the following command:
sudo apt-get remove libxml-dtdparser-perlUninstall libxml-dtdparser-perl And Its Dependencies
To uninstall libxml-dtdparser-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libxml-dtdparser-perlRemove libxml-dtdparser-perl Configurations and Data
To remove libxml-dtdparser-perl configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libxml-dtdparser-perlRemove libxml-dtdparser-perl configuration, data, and all of its dependencies
We can use the following command to remove libxml-dtdparser-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libxml-dtdparser-perlDependencies
libxml-dtdparser-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libxml-dtdparser-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.