How To Install libdpkg-log-perl on Debian 9

In this tutorial we learn how to install libdpkg-log-perl on Debian 9. libdpkg-log-perl is module for parsing and analysing dpkg log files

Introduction

In this tutorial we learn how to install libdpkg-log-perl on Debian 9.

What is libdpkg-log-perl

libdpkg-log-perl is:

DPKG::Log is a perl library which aims at parsing and analysing a dpkg logfile.

It supports:

  • Parsing a dpkg log and representing each line as a separate generic object.
  • Analysing a dpkg log and extracting information from it, such as installed packages, upgraded packages etc.

There are three methods to install libdpkg-log-perl on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libdpkg-log-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 libdpkg-log-perl using apt-get by running the following command:

sudo apt-get -y install libdpkg-log-perl

Install libdpkg-log-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libdpkg-log-perl

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

sudo aptitude -y install libdpkg-log-perl

How To Uninstall libdpkg-log-perl on Debian 9

To uninstall only the libdpkg-log-perl package we can use the following command:

sudo apt-get remove libdpkg-log-perl

Uninstall libdpkg-log-perl And Its Dependencies

To uninstall libdpkg-log-perl and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libdpkg-log-perl

Remove libdpkg-log-perl Configurations and Data

To remove libdpkg-log-perl configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libdpkg-log-perl

Remove libdpkg-log-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libdpkg-log-perl

Dependencies

libdpkg-log-perl have the following dependencies:

References

Summary

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