How To Install dnstap-ldns on Ubuntu 18.04

In this tutorial we learn how to install dnstap-ldns on Ubuntu 18.04. dnstap-ldns is Utility that can decode dnstap encoded files

Introduction

In this tutorial we learn how to install dnstap-ldns on Ubuntu 18.04.

What is dnstap-ldns

dnstap-ldns is:

dnstap is a flexible, structured binary log format for DNS software. dnstap-ldns is the reference utility that can decode dnstap encoded files.

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

Install dnstap-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 dnstap-ldns using apt-get by running the following command:

sudo apt-get -y install dnstap-ldns

Install dnstap-ldns Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install dnstap-ldns

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

sudo aptitude update

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

sudo aptitude -y install dnstap-ldns

How To Uninstall dnstap-ldns on Ubuntu 18.04

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

sudo apt-get remove dnstap-ldns

Uninstall dnstap-ldns And Its Dependencies

To uninstall dnstap-ldns and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove dnstap-ldns

Remove dnstap-ldns Configurations and Data

To remove dnstap-ldns configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge dnstap-ldns

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

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

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

References

Summary

In this tutorial we learn how to install dnstap-ldns package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.