How To Install libdumbnet-dev on Ubuntu 18.04

In this tutorial we learn how to install libdumbnet-dev on Ubuntu 18.04. libdumbnet-dev is dumb, portable networking library – development files

Introduction

In this tutorial we learn how to install libdumbnet-dev on Ubuntu 18.04.

What is libdumbnet-dev

libdumbnet-dev is:

libdumbnet provides a simplified, portable interface to several low-level networking routines, including

  • network address manipulation
  • kernel arp(4) cache and route(4) table lookup and manipulation
  • network firewalling (Ip filter, ipfw, ipchains, pdf, …)
  • network interface lookup and manipulation
  • raw IP packet and Ethernet frame transmission

libdumbnet is known as libdnet in other distributions, but was renamed in Debian in favour of the older DECnet library ’libdnet'.

This package contains the static library and the C header files.

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

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

sudo apt-get update

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

sudo apt-get -y install libdumbnet-dev

Install libdumbnet-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libdumbnet-dev

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

sudo aptitude -y install libdumbnet-dev

How To Uninstall libdumbnet-dev on Ubuntu 18.04

To uninstall only the libdumbnet-dev package we can use the following command:

sudo apt-get remove libdumbnet-dev

Uninstall libdumbnet-dev And Its Dependencies

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

sudo apt-get -y autoremove libdumbnet-dev

Remove libdumbnet-dev Configurations and Data

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

sudo apt-get -y purge libdumbnet-dev

Remove libdumbnet-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libdumbnet-dev

References

Summary

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