# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 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>
- **最后更新:** 2026-06-22T14:05:36-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- 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 (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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
## 其他软件包管理器记录

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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
