How To Install python-ldns on Debian 10

Learn how to install python-ldns on Debian 10 with this tutorial. python-ldns is Python bindings for the ldns library for DNS programming

Introduction

In this tutorial we learn how to install python-ldns on Debian 10.

What is python-ldns

python-ldns is:

The goal of ldns is to simplify DNS programming, it supports recent RFCs like the DNSSEC documents, and allows developers to easily create software conforming to current RFCs, and experimental software for current Internet Drafts.

This archive contains modules that allow you to use LDNS Library in Python programs.

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

Install python-ldns Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

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

sudo apt-get -y install python-ldns

Install python-ldns Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-ldns

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

sudo aptitude -y install python-ldns

How To Uninstall python-ldns on Debian 10

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

sudo apt-get remove python-ldns

Uninstall python-ldns And Its Dependencies

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

sudo apt-get -y autoremove python-ldns

Remove python-ldns Configurations and Data

To remove python-ldns configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge python-ldns

Remove python-ldns configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-ldns

Dependencies

python-ldns have the following dependencies:

References

Summary

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