How To Install libzonemaster-ldns-perl on Debian 12

Learn how to install libzonemaster-ldns-perl on Debian 12 with this tutorial. libzonemaster-ldns-perl is Perl wrapper for the ldns DNS library

Introduction

In this tutorial we learn how to install libzonemaster-ldns-perl on Debian 12.

What is libzonemaster-ldns-perl

libzonemaster-ldns-perl is:

This module provides a Perl interface to the ldns library from NLnet Labs and depends on it being available. The module can either compile and use those libraries internally or link to already available ldns library given that the version is high enough. In both cases it relies on a sufficiently recent version of OpenSSL being present.

This module is written as part of the Zonemaster project, and therefore primarily exposes the functionality needed for that. Since Zonemaster is a diagnostic tool, that means the functions most used are those for looking things up and inspecting them.

If one wants a module that specifically aims to be a complete and transparent interface to ldns, DNS::LDNS is a better fit than this module.

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

sudo apt-get -y install libzonemaster-ldns-perl

Install libzonemaster-ldns-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libzonemaster-ldns-perl

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

sudo aptitude -y install libzonemaster-ldns-perl

How To Uninstall libzonemaster-ldns-perl on Debian 12

To uninstall only the libzonemaster-ldns-perl package we can use the following command:

sudo apt-get remove libzonemaster-ldns-perl

Uninstall libzonemaster-ldns-perl And Its Dependencies

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

sudo apt-get -y autoremove libzonemaster-ldns-perl

Remove libzonemaster-ldns-perl Configurations and Data

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

sudo apt-get -y purge libzonemaster-ldns-perl

Remove libzonemaster-ldns-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libzonemaster-ldns-perl

Dependencies

libzonemaster-ldns-perl have the following dependencies:

References

Summary

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