How To Install libhtml-scrubber-perl on Debian 11

In this tutorial we learn how to install libhtml-scrubber-perl on Debian 11. libhtml-scrubber-perl is Perl extension for scrubbing/sanitizing html

Introduction

In this tutorial we learn how to install libhtml-scrubber-perl on Debian 11.

What is libhtml-scrubber-perl

libhtml-scrubber-perl is:

If you want to “scrub” or “sanitize” html input in a reliable and flexible fashion, then HTML::Scrubber is for you.

The author was not satisfied with HTML::Sanitizer because it is based on HTML::TreeBuilder, so he wrote something similar that works directly with HTML::Parser.

There are three methods to install libhtml-scrubber-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 libhtml-scrubber-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 libhtml-scrubber-perl using apt-get by running the following command:

sudo apt-get -y install libhtml-scrubber-perl

Install libhtml-scrubber-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libhtml-scrubber-perl

Install libhtml-scrubber-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 libhtml-scrubber-perl using aptitude by running the following command:

sudo aptitude -y install libhtml-scrubber-perl

How To Uninstall libhtml-scrubber-perl on Debian 11

To uninstall only the libhtml-scrubber-perl package we can use the following command:

sudo apt-get remove libhtml-scrubber-perl

Uninstall libhtml-scrubber-perl And Its Dependencies

To uninstall libhtml-scrubber-perl and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove libhtml-scrubber-perl

Remove libhtml-scrubber-perl Configurations and Data

To remove libhtml-scrubber-perl configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge libhtml-scrubber-perl

Remove libhtml-scrubber-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libhtml-scrubber-perl

Dependencies

libhtml-scrubber-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libhtml-scrubber-perl package on Debian 11 using different package management tools: apt, apt-get and aptitude.