How To Install librose-uri-perl on Debian 12

Learn how to install librose-uri-perl on Debian 12 with this tutorial. librose-uri-perl is module for an easy manipulation of URI components

Introduction

In this tutorial we learn how to install librose-uri-perl on Debian 12.

What is librose-uri-perl

librose-uri-perl is:

Rose::URI perl module is an alternative to URI with more functionalities like:

  • a rich set of query string manipulation methods
  • query parameters with multiple values
  • usage of Apache’s C-based URI parsing and HTML escaping functions when run in a mod_perl 1.x web server environment.

Rose::URI stores each URI “in pieces” (scheme, host, path, etc.) and then assembles those pieces when the entire URI is needed as a string. This technique is based on the assumption that the URI will be manipulated many more times than it is stringified. If this is not the case in your usage scenario, then URI may be a better alternative.

Rose::URI actually uses the URI class to do the heavy lifting of parsing URIs when not running in a mod_perl 1.x environment.

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

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

sudo apt-get -y install librose-uri-perl

Install librose-uri-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install librose-uri-perl

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

sudo aptitude -y install librose-uri-perl

How To Uninstall librose-uri-perl on Debian 12

To uninstall only the librose-uri-perl package we can use the following command:

sudo apt-get remove librose-uri-perl

Uninstall librose-uri-perl And Its Dependencies

To uninstall librose-uri-perl and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove librose-uri-perl

Remove librose-uri-perl Configurations and Data

To remove librose-uri-perl configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge librose-uri-perl

Remove librose-uri-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge librose-uri-perl

Dependencies

librose-uri-perl have the following dependencies:

References

Summary

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