# 使用 Homebrew, apt, MacPorts, Nix 安装 cdpr

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

## 安装

```sh
sudo av install brew:cdpr
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cdpr
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cdpr
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install cdpr
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#cdpr
```

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

## 软件包事实

- **软件包键:** brew:cdpr
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cdpr>
- **版本:** 2.4
- **来源摘要:** Cisco Discovery Protocol Reporter
- **主页:** <https://www.monkeymental.com/>
- **上游文档:** <https://www.monkeymental.com/>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://downloads.sourceforge.net/project/cdpr/cdpr/2.4/cdpr-2.4.tgz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cdpr (cli)
- cdpr (别名)

## macOS 提供的库

- libpcap

## 安装行为

- post-install 钩子: 未定义
- 注意事项: run cdpr sudo'd in order to avoid the error: 'No interfaces found! Make sure pcap is installed.'
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.4
- 本地数据: OK
- 上游仓库: https://www.monkeymental.com/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

CDPR, the Cisco Discovery Protocol Reporter, is a small C command-line utility for decoding CDP packets so a host can report which Cisco switch and port it is connected to.

### 项目历史

SourceForge lists the project as registered on 2003-02-11 and describes it as a network-monitoring utility for decoding Cisco Discovery Protocol packets. The MonkeyMental project page identifies CDPR 2.4 as the packaged release and says the tool is known to compile and run on Solaris, Linux, HP-UX, AIX, and Windows with pcap.

### 采用历史

CDPR had the classic small-admin-tool adoption path: tarball releases on SourceForge, distro packaging for Unix-like systems, and enough operational usefulness to survive in Homebrew, Debian, Ubuntu, MacPorts, and Nix per the supplied package-manager metadata.

### 使用方式

Administrators run cdpr to decode the local network's CDP announcements. In verbose mode it can decode the full packet, including VLAN and capability information, and MonkeyMental says it can report data back to a server for a switch-port database.

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

CDPR is package-nerd interesting because it is a tiny single-purpose network discovery tool that packages cleanly, needs libpcap-style platform support, and fills the gap when a host needs CDP visibility without a full network-management suite.

### 时间线

- 2003: CDPR project registered on SourceForge.
- 2010: SourceForge files list cdpr-2.4.tgz in the cdpr file area.
- 2013: SourceForge project metadata lists the last update as 2013-02-18.

### Related projects

- Cisco Discovery Protocol is the network protocol CDPR decodes.
- libpcap/pcap-style capture support is used for packet capture on supported systems.

### 来源

- <https://sourceforge.net/p/cdpr/code>
- <https://www.monkeymental.com/>
- <https://sourceforge.net/projects/cdpr>
- <https://formulae.brew.sh/api/formula/cdpr.json>
- <https://sourceforge.net/projects/cdpr/files/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cdpr
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Debian apt - cdpr - 2.4-3+b1: normalized package name match | Debian stable package indexes: cdpr from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Cisco Discovery Protocol Reporter | http://cdpr.sourceforge.net/
- Nix - cdpr: normalized package name match | nixpkgs package indexes: pkgs/by-name/cd/cdpr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - cdpr - 2.4-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: cdpr from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Cisco Discovery Protocol Reporter | http://cdpr.sourceforge.net/
- MacPorts - cdpr: normalized package name match | MacPorts ports tree: net/cdpr/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [nfdump](https://pkg.so/zh-hans/brew/nfdump/) - Shares pkgdb curated category or tags: cli, network-monitoring, networking.
- [jnettop](https://pkg.so/zh-hans/brew/jnettop/) - Shares pkgdb curated category or tags: c, cli, network-monitoring, networking.
- [c-ares](https://pkg.so/zh-hans/brew/c-ares/) - Shares pkgdb curated category or tags: c, cli, networking.
- [czmq](https://pkg.so/zh-hans/brew/czmq/) - Shares pkgdb curated category or tags: c, cli, networking.
- [tcpdump](https://pkg.so/zh-hans/brew/tcpdump/) - Shares pkgdb curated category or tags: cli, network-monitoring, networking.
- [libnet](https://pkg.so/zh-hans/brew/libnet/) - Shares pkgdb curated category or tags: c, cli, networking.
- [iftop](https://pkg.so/zh-hans/brew/iftop/) - Shares pkgdb curated category or tags: cli, network-monitoring, networking.
- [sniffnet](https://pkg.so/zh-hans/brew/sniffnet/) - Shares pkgdb curated category or tags: cli, network-monitoring, networking.
- [argus](https://pkg.so/zh-hans/brew/argus/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, monitoring, network, network-monitoring, networking.
- [daemonlogger](https://pkg.so/zh-hans/brew/daemonlogger/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, monitoring, network, network-monitoring, networking.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
