How To Install lldpad-dev on Ubuntu 18.04

In this tutorial we learn how to install lldpad-dev on Ubuntu 18.04. lldpad-dev is Link Layer Discovery Protocol Implementation (Development headers)

Introduction

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

What is lldpad-dev

lldpad-dev is:

The lldpad package is an implementation of the Link Layer Discovery Protocol (LLDP). It originated from Intel’s Data Center Bridging (DCB) software - the dcbd package. The lldpad package adds LLDP support for all ports in addition to DCB Exchange protocol (DCBX) support on DCB capable ports (as was provided by dcbd). Also, support for additional LLDP TLVs has been added.

DCB is a collection of emerging standards-based technologies designed to allow Ethernet to support multiple types of traffic classes in the Data Center. The DCBX functionality of this package is designed to work with the DCB kernel interface (dcbnl in rtnetlink) that is included in the Linux kernel 2.6.29 or higher. The Intel ixgbe driver supports the dcbnl interface.

This package contains lldpad development headers.

There are three methods to install lldpad-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 lldpad-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 lldpad-dev using apt-get by running the following command:

sudo apt-get -y install lldpad-dev

Install lldpad-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install lldpad-dev

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

sudo aptitude -y install lldpad-dev

How To Uninstall lldpad-dev on Ubuntu 18.04

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

sudo apt-get remove lldpad-dev

Uninstall lldpad-dev And Its Dependencies

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

sudo apt-get -y autoremove lldpad-dev

Remove lldpad-dev Configurations and Data

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

sudo apt-get -y purge lldpad-dev

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

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

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

References

Summary

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