How To Install dhcp-probe on Ubuntu 18.04

In this tutorial we learn how to install dhcp-probe on Ubuntu 18.04. dhcp-probe is network DHCP or BootP server discover

Introduction

In this tutorial we learn how to install dhcp-probe on Ubuntu 18.04.

What is dhcp-probe

dhcp-probe is:

dhcp_probe attempts to discover DHCP and BootP servers on a directly-attached Ethernet network. A network administrator can use this tool to locate un- authorized DHCP and BootP servers. Essentially, dhcp_probe mimics a BootP or DHCP client in a variety of possible states, attempting to provoke responses from servers.

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

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

sudo apt-get update

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

sudo apt-get -y install dhcp-probe

Install dhcp-probe Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install dhcp-probe

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

sudo aptitude -y install dhcp-probe

How To Uninstall dhcp-probe on Ubuntu 18.04

To uninstall only the dhcp-probe package we can use the following command:

sudo apt-get remove dhcp-probe

Uninstall dhcp-probe And Its Dependencies

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

sudo apt-get -y autoremove dhcp-probe

Remove dhcp-probe Configurations and Data

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

sudo apt-get -y purge dhcp-probe

Remove dhcp-probe configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge dhcp-probe

References

Summary

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