How To Install libdata-uriencode-perl on Kali Linux

In this tutorial we learn how to install libdata-uriencode-perl on Kali Linux. libdata-uriencode-perl is module to encode and decode data structures for use in URIs

Introduction

In this tutorial we learn how to install libdata-uriencode-perl on Kali Linux.

What is libdata-uriencode-perl

libdata-uriencode-perl is:

The world of the web works off of URI’s. The Query string portion of URIs already support encoding of key/value paired data - they just don’t natively allow for complex data structures.

There are modules or encodings that do support arbitrarily complex data structures. JSON, YAML and Data::Dumper all have their own way of encoding complex structures. But then to pass them across the web, you usually still have to URL encode them and pass them via a form parameter.

Data::URIEncode allows for encoding and decoding complex (multi level) data structures using native Query String manipulators (such as CGI.pm). It takes complex data and turns it into a flat hashref which can then be turned into a URI query string using URL encoding. It also takes a flat hashref of data passed in and translates it back to a complex structure.

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

sudo apt-get -y install libdata-uriencode-perl

Install libdata-uriencode-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libdata-uriencode-perl

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

sudo aptitude -y install libdata-uriencode-perl

How To Uninstall libdata-uriencode-perl on Kali Linux

To uninstall only the libdata-uriencode-perl package we can use the following command:

sudo apt-get remove libdata-uriencode-perl

Uninstall libdata-uriencode-perl And Its Dependencies

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

sudo apt-get -y autoremove libdata-uriencode-perl

Remove libdata-uriencode-perl Configurations and Data

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

sudo apt-get -y purge libdata-uriencode-perl

Remove libdata-uriencode-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libdata-uriencode-perl

Dependencies

libdata-uriencode-perl have the following dependencies:

References

Summary

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