How To Install libcpan-mini-inject-perl on Ubuntu 18.04

In this tutorial we learn how to install libcpan-mini-inject-perl on Ubuntu 18.04. libcpan-mini-inject-perl is module to inject modules into a CPAN

Introduction

In this tutorial we learn how to install libcpan-mini-inject-perl on Ubuntu 18.04.

What is libcpan-mini-inject-perl

libcpan-mini-inject-perl is:

CPAN::Mini::Inject uses CPAN::Mini to build or update a local CPAN mirror then adds modules from your repository to it. Allowing the inclusion of private modules in a minimal CPAN mirror. This enables the use of CPAN/CPANPLUS to install them.

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

sudo apt-get -y install libcpan-mini-inject-perl

Install libcpan-mini-inject-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libcpan-mini-inject-perl using apt by running the following command:

sudo apt -y install libcpan-mini-inject-perl

Install libcpan-mini-inject-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 libcpan-mini-inject-perl using aptitude by running the following command:

sudo aptitude -y install libcpan-mini-inject-perl

How To Uninstall libcpan-mini-inject-perl on Ubuntu 18.04

To uninstall only the libcpan-mini-inject-perl package we can use the following command:

sudo apt-get remove libcpan-mini-inject-perl

Uninstall libcpan-mini-inject-perl And Its Dependencies

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

sudo apt-get -y autoremove libcpan-mini-inject-perl

Remove libcpan-mini-inject-perl Configurations and Data

To remove libcpan-mini-inject-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libcpan-mini-inject-perl

Remove libcpan-mini-inject-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libcpan-mini-inject-perl

References

Summary

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