How To Install libfind-lib-perl on Ubuntu 18.04

In this tutorial we learn how to install libfind-lib-perl on Ubuntu 18.04. libfind-lib-perl is Perl module to intelligently find libraries

Introduction

In this tutorial we learn how to install libfind-lib-perl on Ubuntu 18.04.

What is libfind-lib-perl

libfind-lib-perl is:

Find::Lib is a module aimed at finding and loading libraries in paths relative to the currently running script. It is particularly useful for test scripts, when there are test helper modules included in the distribution that are needed for testing but should not be installed on the system.

It simplifies the finding and loading these special libraries, which can be a tedious and error-prone process, especially when new modules are updated. This module is generally used to locate and load a bundled “bootstrapping” module which then loads the required dependencies.

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

sudo apt-get -y install libfind-lib-perl

Install libfind-lib-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libfind-lib-perl

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

sudo aptitude -y install libfind-lib-perl

How To Uninstall libfind-lib-perl on Ubuntu 18.04

To uninstall only the libfind-lib-perl package we can use the following command:

sudo apt-get remove libfind-lib-perl

Uninstall libfind-lib-perl And Its Dependencies

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

sudo apt-get -y autoremove libfind-lib-perl

Remove libfind-lib-perl Configurations and Data

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

sudo apt-get -y purge libfind-lib-perl

Remove libfind-lib-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libfind-lib-perl

References

Summary

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