How To Install dhcpd-pools on Ubuntu 18.04

In this tutorial we learn how to install dhcpd-pools on Ubuntu 18.04. dhcpd-pools is ISC dhcpd lease analysis and reporting tool

Introduction

In this tutorial we learn how to install dhcpd-pools on Ubuntu 18.04.

What is dhcpd-pools

dhcpd-pools is:

This is dhcpd-pools ISC dhcp shared network and pool range usage analysis. Purpose of command is to count usage ratio of each IP range and shared network pool which ISC dhcpd is in control of. Users of the command are most likely ISPs and other organizations that have large IP space.

Program is written C. Design goal is to get analysis done quickly where there is lots of data. On cheap laptop the speed of analysis is roughly 100k leases per second. Number of ranges, or shared networks, does not make any significant difference in getting analysis done.

There are three methods to install dhcpd-pools 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 dhcpd-pools Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install dhcpd-pools

Install dhcpd-pools Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install dhcpd-pools

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

sudo aptitude -y install dhcpd-pools

How To Uninstall dhcpd-pools on Ubuntu 18.04

To uninstall only the dhcpd-pools package we can use the following command:

sudo apt-get remove dhcpd-pools

Uninstall dhcpd-pools And Its Dependencies

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

sudo apt-get -y autoremove dhcpd-pools

Remove dhcpd-pools Configurations and Data

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

sudo apt-get -y purge dhcpd-pools

Remove dhcpd-pools configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge dhcpd-pools

References

Summary

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