How To Install libpackage-pkg-perl on Debian 12

Learn how to install libpackage-pkg-perl on Debian 12 with this tutorial. libpackage-pkg-perl is collection of package manipulation utilities

Introduction

In this tutorial we learn how to install libpackage-pkg-perl on Debian 12.

What is libpackage-pkg-perl

libpackage-pkg-perl is:

Package::Pkg is a Perl module that provides several utility functions useful for manipulating packages and their subroutines. You can install arbitrary code references as functions in a given namespace, alias functions from one package to another, and set up an exporter.

In many respects, this package provides functionality similar to Sub::Install (see libsub-install-perl) and Sub::Exporter (see libsub-exporter-perl).

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

sudo apt-get -y install libpackage-pkg-perl

Install libpackage-pkg-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libpackage-pkg-perl

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

sudo aptitude -y install libpackage-pkg-perl

How To Uninstall libpackage-pkg-perl on Debian 12

To uninstall only the libpackage-pkg-perl package we can use the following command:

sudo apt-get remove libpackage-pkg-perl

Uninstall libpackage-pkg-perl And Its Dependencies

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

sudo apt-get -y autoremove libpackage-pkg-perl

Remove libpackage-pkg-perl Configurations and Data

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

sudo apt-get -y purge libpackage-pkg-perl

Remove libpackage-pkg-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libpackage-pkg-perl

Dependencies

libpackage-pkg-perl have the following dependencies:

References

Summary

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