How To Install libxml-filter-reindent-perl on Debian 11
Introduction
In this tutorial we learn how to install libxml-filter-reindent-perl
on Debian 11.
What is libxml-filter-reindent-perl
libxml-filter-reindent-perl is:
XML::Filter::Reindent can be used as a PerlSAX filter to reformat an XML document before sending it to a PerlSAX handler that prints it (like XML::Handler::Composer).
Like XML::Filter::DetectWS, it detects ignorable whitespace and blocks of whitespace characters in certain places. It uses this information and information supplied by the user to determine where whitespace may be modified, deleted or inserted. Based on the indent settings, it then modifies, inserts and deletes characters and ignorable_whitespace events accordingly.
This is just a first stab at the implementation. It may be buggy and may change completely!
The suggested package is only needed for the example ‘pretty.pl’
There are three methods to install libxml-filter-reindent-perl
on Debian 11. 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-filter-reindent-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-filter-reindent-perl
using apt-get
by running the following command:
sudo apt-get -y install libxml-filter-reindent-perl
Install libxml-filter-reindent-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libxml-filter-reindent-perl
using apt
by running the following command:
sudo apt -y install libxml-filter-reindent-perl
Install libxml-filter-reindent-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-filter-reindent-perl
using aptitude
by running the following command:
sudo aptitude -y install libxml-filter-reindent-perl
How To Uninstall libxml-filter-reindent-perl on Debian 11
To uninstall only the libxml-filter-reindent-perl
package we can use the following command:
sudo apt-get remove libxml-filter-reindent-perl
Uninstall libxml-filter-reindent-perl And Its Dependencies
To uninstall libxml-filter-reindent-perl
and its dependencies that are no longer needed by Debian 11, we can use the command below:
sudo apt-get -y autoremove libxml-filter-reindent-perl
Remove libxml-filter-reindent-perl Configurations and Data
To remove libxml-filter-reindent-perl
configuration and data from Debian 11 we can use the following command:
sudo apt-get -y purge libxml-filter-reindent-perl
Remove libxml-filter-reindent-perl configuration, data, and all of its dependencies
We can use the following command to remove libxml-filter-reindent-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libxml-filter-reindent-perl
Dependencies
libxml-filter-reindent-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libxml-filter-reindent-perl
package on Debian 11 using different package management tools: apt
, apt-get
and aptitude
.