How To Install liburi-query-perl on Ubuntu 18.04

In this tutorial we learn how to install liburi-query-perl on Ubuntu 18.04. liburi-query-perl is module for manipulating URI query strings

Introduction

In this tutorial we learn how to install liburi-query-perl on Ubuntu 18.04.

What is liburi-query-perl

liburi-query-perl is:

URI::Query is a Perl module that provides methods for simple URI query string manipulation. It can easily create and manipulate URI query strings from GET and POST requests in web applications. This module is primarily useful for creating links where you wish to preserve some subset of the parameters to the current request, and potentially add or replace others.

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

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

sudo apt-get -y install liburi-query-perl

Install liburi-query-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install liburi-query-perl

Install liburi-query-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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install liburi-query-perl

How To Uninstall liburi-query-perl on Ubuntu 18.04

To uninstall only the liburi-query-perl package we can use the following command:

sudo apt-get remove liburi-query-perl

Uninstall liburi-query-perl And Its Dependencies

To uninstall liburi-query-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove liburi-query-perl

Remove liburi-query-perl Configurations and Data

To remove liburi-query-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge liburi-query-perl

Remove liburi-query-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge liburi-query-perl

References

Summary

In this tutorial we learn how to install liburi-query-perl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.