How To Install libparams-util-perl on Ubuntu 18.04

In this tutorial we learn how to install libparams-util-perl on Ubuntu 18.04. libparams-util-perl is Perl extension for simple stand-alone param checking functions

Introduction

In this tutorial we learn how to install libparams-util-perl on Ubuntu 18.04.

What is libparams-util-perl

libparams-util-perl is:

Params::Util provides a basic set of importable functions that makes checking parameters easier. The functions provided by Params::Util check in the most strictly correct manner, and it should not be fooled by odd cases.

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

sudo apt-get -y install libparams-util-perl

Install libparams-util-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libparams-util-perl

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

sudo aptitude -y install libparams-util-perl

How To Uninstall libparams-util-perl on Ubuntu 18.04

To uninstall only the libparams-util-perl package we can use the following command:

sudo apt-get remove libparams-util-perl

Uninstall libparams-util-perl And Its Dependencies

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

sudo apt-get -y autoremove libparams-util-perl

Remove libparams-util-perl Configurations and Data

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

sudo apt-get -y purge libparams-util-perl

Remove libparams-util-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libparams-util-perl

References

Summary

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