How To Install lldpd on Debian 10
Introduction
In this tutorial we learn how to install lldpd
on Debian 10.
What is lldpd
lldpd is:
LLDP is an industry standard protocol designed to supplant proprietary Link-Layer protocols such as Extreme’s EDP (Extreme Discovery Protocol) and CDP (Cisco Discovery Protocol). The goal of LLDP is to provide an inter-vendor compatible mechanism to deliver Link-Layer notifications to adjacent network devices.
This implementation provides LLDP sending and reception, supports VLAN and includes an SNMP subagent that can interface to an SNMP agent through AgentX protocol.
This daemon is also able to deal with CDP, SONMP, FDP and EDP protocol. It also handles LLDP-MED extension.
There are three methods to install lldpd
on Debian 10. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install lldpd Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install lldpd
using apt-get
by running the following command:
sudo apt-get -y install lldpd
Install lldpd Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install lldpd
using apt
by running the following command:
sudo apt -y install lldpd
Install lldpd 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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install lldpd
using aptitude
by running the following command:
sudo aptitude -y install lldpd
How To Uninstall lldpd on Debian 10
To uninstall only the lldpd
package we can use the following command:
sudo apt-get remove lldpd
Uninstall lldpd And Its Dependencies
To uninstall lldpd
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove lldpd
Remove lldpd Configurations and Data
To remove lldpd
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge lldpd
Remove lldpd configuration, data, and all of its dependencies
We can use the following command to remove lldpd
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge lldpd
Dependencies
lldpd have the following dependencies:
References
Summary
In this tutorial we learn how to install lldpd
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.