How To Install dhis-tools-dns on Ubuntu 18.04

In this tutorial we learn how to install dhis-tools-dns on Ubuntu 18.04. dhis-tools-dns is Dynamic Host Information System - DNS configuration tools

Introduction

In this tutorial we learn how to install dhis-tools-dns on Ubuntu 18.04.

What is dhis-tools-dns

dhis-tools-dns is:

This package includes a set of tools that may be used to manually create DHIS records on a dynamic DNS server.

There are three methods to install dhis-tools-dns 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 dhis-tools-dns Using apt-get

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

sudo apt-get update

After updating apt database, We can install dhis-tools-dns using apt-get by running the following command:

sudo apt-get -y install dhis-tools-dns

Install dhis-tools-dns Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install dhis-tools-dns using apt by running the following command:

sudo apt -y install dhis-tools-dns

Install dhis-tools-dns 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 dhis-tools-dns using aptitude by running the following command:

sudo aptitude -y install dhis-tools-dns

How To Uninstall dhis-tools-dns on Ubuntu 18.04

To uninstall only the dhis-tools-dns package we can use the following command:

sudo apt-get remove dhis-tools-dns

Uninstall dhis-tools-dns And Its Dependencies

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

sudo apt-get -y autoremove dhis-tools-dns

Remove dhis-tools-dns Configurations and Data

To remove dhis-tools-dns configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge dhis-tools-dns

Remove dhis-tools-dns configuration, data, and all of its dependencies

We can use the following command to remove dhis-tools-dns configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge dhis-tools-dns

References

Summary

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