How To Install libcgi-expand-perl on Kali Linux

In this tutorial we learn how to install libcgi-expand-perl on Kali Linux. libcgi-expand-perl is convert flat hash to nested data using TT2s dot convention

Introduction

In this tutorial we learn how to install libcgi-expand-perl on Kali Linux.

What is libcgi-expand-perl

libcgi-expand-perl is:

Converts a CGI query into structured data using a dotted name convention similar to TT2. expand_cgi works with CGI.pm, Apache::Request or anything with an appropriate “param” method. Or you can use expand_hash directly.

If you prefer to use a different flattening convention then CGI::Expand can be subclassed.

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

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

Install libcgi-expand-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcgi-expand-perl

Install libcgi-expand-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 update

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

sudo aptitude -y install libcgi-expand-perl

How To Uninstall libcgi-expand-perl on Kali Linux

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

sudo apt-get remove libcgi-expand-perl

Uninstall libcgi-expand-perl And Its Dependencies

To uninstall libcgi-expand-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:

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

Remove libcgi-expand-perl Configurations and Data

To remove libcgi-expand-perl configuration and data from Kali Linux we can use the following command:

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

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

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

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

Dependencies

libcgi-expand-perl have the following dependencies:

References

Summary

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