# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper, apt 安装 net-snmp

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

## 安装

```sh
sudo av install brew:net-snmp
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install net-snmp
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install net-snmp
```

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

### Linux

- apk (92%):

```sh
sudo apk add net-snmp
```

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

- dnf (92%):

```sh
sudo dnf install net-snmp
```

  证据: Fedora Rawhide package metadata: net-snmp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#net-snmp
```

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

- pacman (92%):

```sh
sudo pacman -S net-snmp
```

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

- zypper (92%):

```sh
sudo zypper install net-snmp
```

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

- Debian apt (92%):

```sh
sudo apt install libnetsnmptrapd40t64
```

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

## 软件包事实

- **软件包键:** brew:net-snmp
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/net-snmp>
- **版本:** 5.9.5.2
- **来源摘要:** Implements SNMP v1, v2c, and v3, using IPv4 and IPv6
- **主页:** <http://www.net-snmp.org/>
- **仓库:** <https://github.com/net-snmp/net-snmp>
- **上游文档:** <http://www.net-snmp.org/>
- **许可证:** MIT-CMU AND MIT AND BSD-3-Clause
- **源码归档:** <https://downloads.sourceforge.net/project/net-snmp/net-snmp/5.9.5.2/net-snmp-5.9.5.2.tar.gz>
- **最后更新:** 2026-06-22T14:05:36-07:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- agentxtrap (cli)
- checkbandwidth (cli)
- encode_keychange (cli)
- fixproc (cli)
- ipf-mod.pl (cli)
- mib2c (cli)
- mib2c-update (cli)
- net-snmp-cert (cli)
- net-snmp-config (cli)
- net-snmp-create-v3-user (cli)
- snmp-bridge-mib (cli)
- snmpbulkget (cli)
- snmpbulkwalk (cli)
- snmpcheck (cli)
- snmpconf (cli)
- snmpd (cli)
- snmpdelta (cli)
- snmpdf (cli)
- snmpget (cli)
- snmpgetnext (cli)
- snmpinform (cli)
- snmpnetstat (cli)
- snmpping (cli)
- snmpps (cli)
- snmpset (cli)
- snmpstatus (cli)
- snmptable (cli)
- snmptest (cli)
- snmptranslate (cli)
- snmptrap (cli)
- snmptrapd (cli)
- snmpusm (cli)
- snmpvacm (cli)
- snmpwalk (cli)
- tkmib (cli)
- traptoemail (cli)
- agentxtrap (别名)
- checkbandwidth (别名)
- encode_keychange (别名)
- fixproc (别名)
- ipf-mod.pl (别名)
- mib2c (别名)
- mib2c-update (别名)
- net-snmp-cert (别名)
- net-snmp-config (别名)
- net-snmp-create-v3-user (别名)
- snmp-bridge-mib (别名)
- snmpbulkget (别名)
- snmpbulkwalk (别名)
- snmpcheck (别名)
- snmpconf (别名)
- snmpd (别名)
- snmpdelta (别名)
- snmpdf (别名)
- snmpget (别名)
- snmpgetnext (别名)
- snmpinform (别名)
- snmpnetstat (别名)
- snmpping (别名)
- snmpps (别名)
- snmpset (别名)
- snmpstatus (别名)
- snmptable (别名)
- snmptest (别名)
- snmptranslate (别名)
- snmptrap (别名)
- snmptrapd (别名)
- snmpusm (别名)
- snmpvacm (别名)
- snmpwalk (别名)
- tkmib (别名)
- traptoemail (别名)

## 依赖

- openssl@3

## 构建依赖

- autoconf
- automake
- libtool

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 5.9.5.2
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: http://www.net-snmp.org/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Net-SNMP is the classic open source SNMP toolkit: command-line clients, an extensible `snmpd` agent, trap handling, MIB tools, and libraries for building SNMP-aware software.

### 项目历史

The project starts with CMU-SNMP in 1992, when Carnegie Mellon made an SNMP library, simple management commands, and an agent publicly available. Wes Hardaker extended that code at UC Davis, published it as ucd-snmp v3.0 in 1995, and opened it into a broader collaborative open source project.

The IETF engaged Hardaker in 1998 to work on a reference implementation of SNMPv3. That work fed into ucd-snmp v4.0 in August 1999, adding SNMPv3 capability and early AgentX support. In late 2000 the project moved to SourceForge and changed its name to Net-SNMP; v5.0 followed in April 2002 with a restructured, more modular agent framework.

### 采用历史

Net-SNMP became infrastructure software because SNMP remained the common denominator for monitoring routers, servers, printers, UPS devices, and appliances. The official history says it was adopted by most Linux and BSD-based systems and ported to Windows and embedded systems.

Homebrew analytics are high relative to the rest of this batch: the formula page showed 127,106 installs over 365 days and 10,635 installs on request, indicating it is often pulled in as a dependency as well as installed directly.

### 使用方式

Package users reach for `snmpwalk`, `snmpget`, `snmptable`, `snmptranslate`, `snmpset`, `snmptrap`, and `snmpd`. Typical work includes walking a device subtree, translating numeric OIDs through MIB files, testing SNMPv3 credentials, running a local agent, or debugging traps with `snmptrapd`.

The package is keg-only in Homebrew, which matters for users expecting system SNMP tools. On macOS it often gets installed because another build needs Net-SNMP headers/libraries, or because an operator wants modern upstream tools instead of vendor-provided ones.

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

Net-SNMP is one of those packages whose value is not glamour but compatibility. It embodies decades of protocol edge cases, MIB parser behavior, OS-specific agent modules, and CLI conventions that monitoring stacks still assume.

### 时间线

- 1992: CMU-SNMP origins at Carnegie Mellon University.
- 1995: UCD-SNMP v3.0 released publicly.
- 1998: IETF-sponsored SNMPv3 reference-implementation work begins.
- August 1999: ucd-snmp v4.0 released with SNMPv3 and early AgentX support.
- Late 2000: renamed Net-SNMP and moved to SourceForge.
- April 2002: net-snmp v5.0 released.

### Related projects

- CMU-SNMP
- UCD-SNMP
- AgentX
- SMUX
- MRTG
- RRDtool
- Nagios plugins

### 来源

- <https://formulae.brew.sh/formula/net-snmp>
- <https://github.com/net-snmp/net-snmp>
- <https://net-snmp.sourceforge.io/about/history.html>
- <https://www.net-snmp.org/>
- <https://www.net-snmp.org/docs/FAQ.html>


## 安全说明

narrow executable package without higher-risk signals.

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


## 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

- Unix: snmp.conf, snmp.local.conf in Net-SNMP configuration directories, snmpd.conf, snmpd.local.conf in Net-SNMP configuration directories, ~/.snmp/snmp.conf, /var/net-snmp/snmpd.conf

## Credential files

- Unix: ~/.snmp/snmp.conf, /var/net-snmp/snmpd.conf
## 源数据库详情

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

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

- Debian apt - libnetsnmptrapd40t64 - 5.9.4+dfsg-2+deb13u1: normalized package name match | Debian stable package indexes: libnetsnmptrapd40t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SNMP (Simple Network Management Protocol) trap library | https://net-snmp.sourceforge.net/
- Debian apt - libsnmp-base - 5.9.4+dfsg-2+deb13u1: normalized package name match | Debian stable package indexes: libsnmp-base from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SNMP configuration script, MIBs and documentation | https://net-snmp.sourceforge.net/
- Debian apt - libsnmp-dev - 5.9.4+dfsg-2+deb13u1: normalized package name match | Debian stable package indexes: libsnmp-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SNMP (Simple Network Management Protocol) development files | https://net-snmp.sourceforge.net/
- Debian apt - libsnmp-perl - 5.9.4+dfsg-2+deb13u1: normalized package name match | Debian stable package indexes: libsnmp-perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SNMP (Simple Network Management Protocol) Perl5 support | https://net-snmp.sourceforge.net/
- Debian apt - libsnmp40t64 - 5.9.4+dfsg-2+deb13u1: normalized package name match | Debian stable package indexes: libsnmp40t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SNMP (Simple Network Management Protocol) library | https://net-snmp.sourceforge.net/
- Debian apt - snmp - 5.9.4+dfsg-2+deb13u1: normalized package name match | Debian stable package indexes: snmp from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SNMP (Simple Network Management Protocol) applications | https://net-snmp.sourceforge.net/
- Debian apt - snmpd - 5.9.4+dfsg-2+deb13u1: normalized package name match | Debian stable package indexes: snmpd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SNMP (Simple Network Management Protocol) agents | https://net-snmp.sourceforge.net/
- Debian apt - snmptrapd - 5.9.4+dfsg-2+deb13u1: normalized package name match | Debian stable package indexes: snmptrapd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Net-SNMP notification receiver | https://net-snmp.sourceforge.net/
- Debian apt - tkmib - 5.9.4+dfsg-2+deb13u1: normalized package name match | Debian stable package indexes: tkmib from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SNMP (Simple Network Management Protocol) MIB browser | https://net-snmp.sourceforge.net/
- Nix - net-snmp: normalized package name match | nixpkgs package indexes: pkgs/by-name/ne/net-snmp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libnetsnmptrapd40t64 - 5.9.4+dfsg-1.1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libnetsnmptrapd40t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | SNMP (Simple Network Management Protocol) trap library | https://net-snmp.sourceforge.net/
- Ubuntu apt - libsnmp-base - 5.9.4+dfsg-1.1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libsnmp-base from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | SNMP configuration script, MIBs and documentation | https://net-snmp.sourceforge.net/
- Ubuntu apt - libsnmp-dev - 5.9.4+dfsg-1.1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libsnmp-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | SNMP (Simple Network Management Protocol) development files | https://net-snmp.sourceforge.net/
- Ubuntu apt - libsnmp-perl - 5.9.4+dfsg-1.1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libsnmp-perl from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | SNMP (Simple Network Management Protocol) Perl5 support | https://net-snmp.sourceforge.net/
- Ubuntu apt - libsnmp40t64 - 5.9.4+dfsg-1.1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libsnmp40t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | SNMP (Simple Network Management Protocol) library | https://net-snmp.sourceforge.net/
- Ubuntu apt - snmp - 5.9.4+dfsg-1.1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: snmp from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | SNMP (Simple Network Management Protocol) applications | https://net-snmp.sourceforge.net/


## 相关链接

- [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.
- [Web development packages](https://pkg.so/zh-hans/web-dev-tools/) - Matched web development metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [libtool](https://pkg.so/zh-hans/brew/libtool/) - Build dependency declared by Homebrew.
- [autoconf](https://pkg.so/zh-hans/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://pkg.so/zh-hans/brew/automake/) - Build dependency declared by Homebrew.
- [php](https://pkg.so/zh-hans/brew/php/) - Popular package that depends on this formula.
- [php@8.4](https://pkg.so/zh-hans/brew/php-8-4/) - Popular package that depends on this formula.
- [sane-backends](https://pkg.so/zh-hans/brew/sane-backends/) - Popular package that depends on this formula.
- [syslog-ng](https://pkg.so/zh-hans/brew/syslog-ng/) - Popular package that depends on this formula.
- [collectd](https://pkg.so/zh-hans/brew/collectd/) - Popular package that depends on this formula.
- [libsmi](https://pkg.so/zh-hans/brew/libsmi/) - Shares pkgdb curated category or tags: cli, mib, network-management, networking, snmp.
- [lldpd](https://pkg.so/zh-hans/brew/lldpd/) - Shares pkgdb curated category or tags: cli, daemon, networking, snmp.
- [passt](https://pkg.so/zh-hans/brew/passt/) - Shares pkgdb curated category or tags: cli, daemon, networking.
- [transmission-cli](https://pkg.so/zh-hans/brew/transmission-cli/) - Shares pkgdb curated category or tags: cli, daemon, networking.
- [msmtp](https://pkg.so/zh-hans/brew/msmtp/) - Shares pkgdb curated category or tags: cli, daemon, networking.
- [knot](https://pkg.so/zh-hans/brew/knot/) - Shares pkgdb curated category or tags: cli, daemon, networking.
- [tinyproxy](https://pkg.so/zh-hans/brew/tinyproxy/) - Shares pkgdb curated category or tags: cli, daemon, networking.
- [lighttpd](https://pkg.so/zh-hans/brew/lighttpd/) - Shares pkgdb curated category or tags: cli, daemon, networking.
- [i2pd](https://pkg.so/zh-hans/brew/i2pd/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, daemon, network, networking, openssl.
- [freeswitch](https://pkg.so/zh-hans/brew/freeswitch/) - Local package facts share a topical domain. Shared terms: cert, cli, encode, networking, openssl.
- [curl](https://pkg.so/zh-hans/brew/curl/) - Local package facts share a topical domain. Shared terms: cli, config, networking, openssl, openssl-3.

## Combined YAML source

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


## 来源

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