# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 lldpd

查看 lldpd 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:lldpd
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install lldpd
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lldpd
```

  证据: MacPorts ports tree: net/lldpd/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add lldpd
```

  证据: Alpine Linux edge package indexes: lldpd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install lldpd
```

  证据: Debian stable package indexes: lldpd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install lldpd
```

  证据: Fedora Rawhide package metadata: lldpd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#lldpd
```

  证据: nixpkgs package indexes: pkgs/by-name/ll/lldpd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S lldpd
```

  证据: Arch Linux sync databases: lldpd from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install lldpd
```

  证据: openSUSE Tumbleweed package metadata: lldpd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:lldpd
- **软件包管理器:** Homebrew
- **版本:** 1.0.21
- **来源摘要:** Implementation of IEEE 802.1ab (LLDP)
- **主页:** <https://lldpd.github.io/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- lldpcli (别名)
- lldpctl (别名)
- lldpd (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.0.21
## 项目历史与用法

lldpd is an ISC-licensed LLDP daemon for Unix-like systems. It implements IEEE 802.1AB Link Layer Discovery Protocol and also speaks several older vendor discovery protocols, making it a practical bridge between standards-based and legacy network-neighbor discovery.

### 项目历史

The project is maintained as a daemon, lldpd, plus command-line clients such as lldpcli and lldpctl. The upstream README describes support for receiving and sending LLDP frames, an SNMP subagent for net-snmp, partial LLDP-MED support, and operation on FreeBSD, GNU/Linux, macOS, NetBSD, OpenBSD, and Solaris.

The public GitHub release history includes lldpd 0.7.8 on May 28, 2014 and the NEWS file records the 1.0.0 series before later 1.0.x maintenance releases. Later entries show steady maintenance around network interface handling, security hardening, protocol parsing, and platform support.

### 采用历史

lldpd fits the operational niche where servers, appliances, lab machines, and network-attached Unix systems need to advertise and inspect their Layer 2 neighbors without relying on a switch-vendor agent. Its support for CDP, FDP, SONMP, and EDP helped it coexist with older proprietary discovery environments while LLDP became the vendor-neutral default.

### 使用方式

In normal use, lldpd runs as a daemon that sends and receives discovery advertisements, while lldpcli queries and configures the daemon. Operators use it to identify switch ports, chassis IDs, VLAN hints, management addresses, capabilities, and neighboring devices directly from a host.

Its package-manager value is strongest on Unix-like systems where a small daemon can make server-to-switch topology visible without installing a full network-management stack.

### 为什么软件包爱好者会关心

lldpd is the kind of infrastructure package that quietly saves debugging time: after installation, a host can explain what it is connected to at Layer 2. For package nerds, it is also a compact example of a daemon packaged with privilege separation, service integration, SNMP hooks, protocol compatibility, and OS-specific network plumbing.

### 时间线

- 2005: IEEE published the 802.1AB standard for station and media access control connectivity discovery.
- 2014-05-28: lldpd 0.7.8 appeared in GitHub releases.
- 2026-05-14: lldpd 1.0.22 appeared in GitHub releases with security and protocol parsing fixes.

### Related projects

- IEEE 802.1AB defines the LLDP standard that lldpd implements.
- CDP, FDP, EDP, and SONMP are vendor discovery protocols that lldpd can interoperate with.
- net-snmp is related through lldpd's AgentX/SNMP subagent support.

### 来源

- <https://github.com/lldpd/lldpd>
- <https://github.com/lldpd/lldpd/blob/master/NEWS>
- <https://github.com/lldpd/lldpd/releases/tag/0.7.8>
- <https://github.com/lldpd/lldpd/releases/tag/1.0.22>
- <https://lldpd.github.io/>
- <https://lldpd.github.io/usage.html>
- <https://standards.ieee.org/standard/802_1AB-2016.html>


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Linux: /etc/default/lldpd, /etc/sysconfig/lldpd
## 其他软件包管理器记录

- Debian apt - liblldpctl-dev - 1.0.18-1+b1: normalized package name match | Debian stable package indexes: liblldpctl-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | implementation of IEEE 802.1ab (LLDP) - development files | https://lldpd.github.io
- Debian apt - lldpd - 1.0.18-1+b1: normalized package name match | Debian stable package indexes: lldpd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | implementation of IEEE 802.1ab (LLDP) | https://lldpd.github.io
- Nix - lldpd: normalized package name match | nixpkgs package indexes: pkgs/by-name/ll/lldpd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - liblldpctl-dev - 1.0.18-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: liblldpctl-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | implementation of IEEE 802.1ab (LLDP) - development files | https://lldpd.github.io
- Ubuntu apt - lldpd - 1.0.18-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: lldpd from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | implementation of IEEE 802.1ab (LLDP) | https://lldpd.github.io
- apk - lldpd - 1.0.22-r0: normalized package name match | Alpine Linux edge package indexes: lldpd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Implementation of IEEE 802.1ab | https://lldpd.github.io/
- apk - lldpd-bash-completion - 1.0.22-r0: normalized package name match | Alpine Linux edge package indexes: lldpd-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for lldpd | https://lldpd.github.io/
- apk - lldpd-dev - 1.0.22-r0: normalized package name match | Alpine Linux edge package indexes: lldpd-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Implementation of IEEE 802.1ab (development files) | https://lldpd.github.io/
- apk - lldpd-doc - 1.0.22-r0: normalized package name match | Alpine Linux edge package indexes: lldpd-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Implementation of IEEE 802.1ab (documentation) | https://lldpd.github.io/
- apk - lldpd-openrc - 1.0.22-r0: normalized package name match | Alpine Linux edge package indexes: lldpd-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Implementation of IEEE 802.1ab (OpenRC init scripts) | https://lldpd.github.io/
- apk - lldpd-zsh-completion - 1.0.22-r0: normalized package name match | Alpine Linux edge package indexes: lldpd-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for lldpd | https://lldpd.github.io/
- dnf - lldpd - 1.0.18-7.fc45: normalized package name match | Fedora Rawhide package metadata: lldpd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | ISC-licensed implementation of LLDP | https://github.com/lldpd/
- dnf - lldpd-devel - 1.0.18-7.fc45: normalized package name match | Fedora Rawhide package metadata: lldpd-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | ISC-licensed implementation of LLDP | https://github.com/lldpd/
- pacman - lldpd - 1.0.22-1: normalized package name match | Arch Linux sync databases: lldpd from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | 802.1ab implementation (LLDP) to help you locate neighbors | https://vincentbernat.github.io/lldpd/
- zypper - liblldpctl4 - 1.0.22-2.3: normalized package name match | openSUSE Tumbleweed package metadata: liblldpctl4 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Implementation of IEEE 802.1ab | https://lldpd.github.io/
- zypper - lldpd - 1.0.22-2.3: normalized package name match | openSUSE Tumbleweed package metadata: lldpd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Implementation of IEEE 802.1ab (LLDP) | https://lldpd.github.io/


## Combined YAML source

View the package source record on GitHub. [combined/lldpd.yml](https://github.com/mxcl/pkgdb/blob/main/combined/lldpd.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
