How To Install lldpd on Rocky Linux 8

In this tutorial we learn how to install lldpd on Rocky Linux 8. lldpd is ISC-licensed implementation of LLDP

Introduction

In this tutorial we learn how to install lldpd on Rocky Linux 8.

What is lldpd

LLDP is an industry standard protocol designed to supplant proprietary Link-Layer protocols such as EDP or CDP. The goal of LLDP is to provide an inter-vendor compatible mechanism to deliver Link-Layer notifications to adjacent network devices.

We can use yum or dnf to install lldpd on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install lldpd.

Install lldpd on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install lldpd using dnf by running the following command:

sudo dnf -y install lldpd

Install lldpd on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install lldpd using yum by running the following command:

sudo yum -y install lldpd

How To Uninstall lldpd on Rocky Linux 8

To uninstall only the lldpd package we can use the following command:

sudo dnf remove lldpd

lldpd Package Contents on Rocky Linux 8

/etc/lldpd.d
/etc/lldpd.d/README.conf
/etc/sysconfig/lldpd
/run/lldpd
/run/lldpd/chroot
/usr/lib/.build-id
/usr/lib/.build-id/07
/usr/lib/.build-id/07/64d62cd872cd8255be4dbe2b8679d274177585
/usr/lib/.build-id/47
/usr/lib/.build-id/47/4fd1ccd59d05f184a216badb6d6f25f84a0845
/usr/lib/.build-id/95
/usr/lib/.build-id/95/7d8c9908fe379d63e045e187c75b1d257e47df
/usr/lib/systemd/system/lldpd.service
/usr/lib/tmpfiles.d/lldpd.conf
/usr/lib64/liblldpctl.so.4
/usr/lib64/liblldpctl.so.4.8.0
/usr/sbin/lldpcli
/usr/sbin/lldpctl
/usr/sbin/lldpd
/usr/share/doc/lldpd
/usr/share/doc/lldpd/NEWS
/usr/share/doc/lldpd/README.md
/usr/share/licenses/lldpd
/usr/share/licenses/lldpd/LICENSE
/usr/share/man/man8/lldpcli.8.gz
/usr/share/man/man8/lldpctl.8.gz
/usr/share/man/man8/lldpd.8.gz
/var/lib/lldpd
/etc/lldpd.d
/etc/lldpd.d/README.conf
/etc/sysconfig/lldpd
/run/lldpd
/run/lldpd/chroot
/usr/lib/.build-id
/usr/lib/.build-id/24
/usr/lib/.build-id/24/3afaf1979e1aae787eba9bf9ba9ebec4e40572
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/ba4fef94c3bb9ba87cf9cde8ee4b277370e247
/usr/lib/.build-id/ea
/usr/lib/.build-id/ea/f059ed20b9de7cea4523655e6a63ab177749aa
/usr/lib/liblldpctl.so.4
/usr/lib/liblldpctl.so.4.8.0
/usr/lib/systemd/system/lldpd.service
/usr/lib/tmpfiles.d/lldpd.conf
/usr/sbin/lldpcli
/usr/sbin/lldpctl
/usr/sbin/lldpd
/usr/share/doc/lldpd
/usr/share/doc/lldpd/NEWS
/usr/share/doc/lldpd/README.md
/usr/share/licenses/lldpd
/usr/share/licenses/lldpd/LICENSE
/usr/share/man/man8/lldpcli.8.gz
/usr/share/man/man8/lldpctl.8.gz
/usr/share/man/man8/lldpd.8.gz
/var/lib/lldpd

References

Summary

In this tutorial we learn how to install lldpd on Rocky Linux 8 using yum and dnf.