How To Install libthread-pool-perl on Ubuntu 18.04

In this tutorial we learn how to install libthread-pool-perl on Ubuntu 18.04. libthread-pool-perl is group of threads for performing similar jobs

Introduction

In this tutorial we learn how to install libthread-pool-perl on Ubuntu 18.04.

What is libthread-pool-perl

libthread-pool-perl is:

The Thread::Pool module allows you to set up a group of (worker) threads to execute a (large) number of similar jobs that need to be executed asynchronously. The routine that actually performs the job (the “do” routine), must be specified as a name or a reference to a (anonymous) subroutine.

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

sudo apt-get -y install libthread-pool-perl

Install libthread-pool-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libthread-pool-perl

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

sudo aptitude -y install libthread-pool-perl

How To Uninstall libthread-pool-perl on Ubuntu 18.04

To uninstall only the libthread-pool-perl package we can use the following command:

sudo apt-get remove libthread-pool-perl

Uninstall libthread-pool-perl And Its Dependencies

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

sudo apt-get -y autoremove libthread-pool-perl

Remove libthread-pool-perl Configurations and Data

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

sudo apt-get -y purge libthread-pool-perl

Remove libthread-pool-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libthread-pool-perl

References

Summary

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