How To Install libcgi-untaint-perl on Debian 10

Learn how to install libcgi-untaint-perl on Debian 10 with this tutorial. libcgi-untaint-perl is module to process CGI input parameters

Introduction

In this tutorial we learn how to install libcgi-untaint-perl on Debian 10.

What is libcgi-untaint-perl

libcgi-untaint-perl is:

Dealing with large web based applications with multiple forms is a minefield. It’s often hard enough to ensure you validate all your input at all, without having to worry about doing it in a consistent manner. If any of the validation rules change, you often have to alter them in many different places. And, if you want to operate taint-safe, then you’re just adding even more headaches.

CGI::Untaint provides a simple, convenient, abstracted and extensible manner for validating and untainting the input from web forms.

You simply create a handler with a hash of your parameters (usually $q->Vars), and then iterate over the fields you wish to extract, performing whatever validations you choose. The resulting variable is guaranteed not only to be valid, but also untainted.

There are three methods to install libcgi-untaint-perl on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libcgi-untaint-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 libcgi-untaint-perl using apt-get by running the following command:

sudo apt-get -y install libcgi-untaint-perl

Install libcgi-untaint-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcgi-untaint-perl

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

sudo aptitude -y install libcgi-untaint-perl

How To Uninstall libcgi-untaint-perl on Debian 10

To uninstall only the libcgi-untaint-perl package we can use the following command:

sudo apt-get remove libcgi-untaint-perl

Uninstall libcgi-untaint-perl And Its Dependencies

To uninstall libcgi-untaint-perl and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove libcgi-untaint-perl

Remove libcgi-untaint-perl Configurations and Data

To remove libcgi-untaint-perl configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge libcgi-untaint-perl

Remove libcgi-untaint-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libcgi-untaint-perl

Dependencies

libcgi-untaint-perl have the following dependencies:

References

Summary

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