How To Install libcpan-inject-perl on Debian 12

Learn how to install libcpan-inject-perl on Debian 12 with this tutorial. libcpan-inject-perl is module for injecting distributions into CPAN sources

Introduction

In this tutorial we learn how to install libcpan-inject-perl on Debian 12.

What is libcpan-inject-perl

libcpan-inject-perl is:

CPAN::Inject is a Perl module that provides a simple and reusable interface for injecting arbitrary packages to a CPAN mirror. Specifically, it accepts any Perl distribution tarball and performs some processing to make it look like it came from CPAN. Subsequently, the package will be installable from the CPAN Shell, with the full automatic recursive dependency resolution.

This package also provides a command line utility, cpaninject, which can be used to inject arbitrary packages under the officially blessed “Reserved Local CPAN Author” id, LOCAL.

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

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

Install libcpan-inject-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcpan-inject-perl

Install libcpan-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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libcpan-inject-perl

How To Uninstall libcpan-inject-perl on Debian 12

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

sudo apt-get remove libcpan-inject-perl

Uninstall libcpan-inject-perl And Its Dependencies

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

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

Remove libcpan-inject-perl Configurations and Data

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

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

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

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

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

Dependencies

libcpan-inject-perl have the following dependencies:

References

Summary

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