How To Install libxml-dtdparser-perl on Debian 9
Introduction
In this tutorial we learn how to install libxml-dtdparser-perl
on Debian 9.
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 Debian 9. 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 update
After updating apt database, We can install libxml-dtdparser-perl
using apt-get
by running the following command:
sudo apt-get -y install libxml-dtdparser-perl
Install libxml-dtdparser-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libxml-dtdparser-perl
using apt
by running the following command:
sudo apt -y install libxml-dtdparser-perl
Install libxml-dtdparser-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-dtdparser-perl
using aptitude
by running the following command:
sudo aptitude -y install libxml-dtdparser-perl
How To Uninstall libxml-dtdparser-perl on Debian 9
To uninstall only the libxml-dtdparser-perl
package we can use the following command:
sudo apt-get remove libxml-dtdparser-perl
Uninstall libxml-dtdparser-perl And Its Dependencies
To uninstall libxml-dtdparser-perl
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove libxml-dtdparser-perl
Remove libxml-dtdparser-perl Configurations and Data
To remove libxml-dtdparser-perl
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge libxml-dtdparser-perl
Remove 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-perl
Dependencies
libxml-dtdparser-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libxml-dtdparser-perl
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.