How To Install lldpd on CentOS 8
Introduction
In this tutorial we learn how to install lldpd
on CentOS 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. lldpd 1.0.1 2.el8 x86_64 183 k lldpd-1.0.1-2.el8.src.rpm appstream ISC-licensed implementation of LLDP https ISC 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install lldpd.
Install lldpd on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install lldpd
using dnf
by running the following command:
sudo dnf -y install lldpd
Install lldpd on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8
To uninstall only the lldpd
package we can use the following command:
sudo dnf remove lldpd
lldpd Package Contents on CentOS 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/27
/usr/lib/.build-id/27/ffaf11c04fc8d52dcb8e6a04653e72cdc637f8
/usr/lib/.build-id/69
/usr/lib/.build-id/69/cbd6bed4342978924812d77b09c5be4e70f14e
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/a3b41857fed94c716d37dc4a8b1cb89843672f
/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
/etc/lldpd.d
/etc/lldpd.d/README.conf
/etc/sysconfig/lldpd
/run/lldpd
/run/lldpd/chroot
/usr/lib/.build-id
/usr/lib/.build-id/71
/usr/lib/.build-id/71/08c76b415245055be4a4df765e9bfe9322c856
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/246cf039a6c507a5d75399c12ffa8297410cc1
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/06f0ae510d8b3ef13f92b4c6b55a43d0b9f435
/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
References
Summary
In this tutorial we learn how to install lldpd
on CentOS 8 using yum and dnf.