How to Install or Uninstall lldpd on Ubuntu 22.04

Updated: September 20, 2022

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. In this guide, I will show you ways to install lldpd Ubuntu 22.04.

Prerequisites to install

  • Operating system: Ubuntu 22.04 is needed for lldpd to work
  • Privileges: Check that you can run sudo commands.

Prerequisites to install lldpd on Ubuntu 22.04

Install lldpd Ubuntu 22.04

lldpd is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one you believe is simple and easy to follow.

Install lldpd using APT

This is one of the popular ways to install any Ubuntu packages because it is simple to understand, even if you are a Linux novice. Following these instructions to get lldpd on your Ubuntu 22.04.

Step 1: Update the APT database to fetch new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install lldpd Ubuntu by executing this command in the terminal.

sudo apt-get -y install lldpd

Install lldpd using Aptitude

You must run this command to install Aptitude if you haven’t already done so on Ubuntu.

sudo apt-get -y install aptitude

After installing it, you can now install lldpd by following these steps:

Step 1: Update the APT database to fetch new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install lldpd Ubuntu by pasting this command into the terminal and pressing Enter.

sudo aptitude install lldpd

Uninstall lldpd on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a lldpd, can be easily uninstalled by anyone.

You can uninstall lldpd Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove lldpd

To uninstall lldpd and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge lldpd

Ending

In this guide, I showed you ways to install lldpd on Ubuntu 22.04 and ways to uninstall lldpd too. Please contact me if you require any assistance. I’d be delighted to respond.