# 使用 Homebrew, Nix 安装 gnmic

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

## 安装

```sh
sudo av install brew:gnmic
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gnmic
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#gnmic
```

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

## 软件包事实

- **软件包键:** brew:gnmic
- **软件包管理器:** Homebrew
- **版本:** 0.46.0
- **来源摘要:** GNMI CLI client and collector
- **主页:** <https://gnmic.openconfig.net>
- **仓库:** <https://github.com/openconfig/gnmic>
- **最后更新:** 2026-07-27T14:57:50+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gnmic (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

gNMIc is an OpenConfig-hosted command-line client and collector for the gNMI network-management protocol. It supports Capabilities, Get, Set, and Subscribe RPCs while also acting as a telemetry collector with outputs for monitoring and messaging systems.

### 项目历史

The changelog records early 0.0.x releases in March and April 2020, followed by 0.1.0 on July 16, 2020. Early releases added output pipelines such as NATS/STAN, UDP, TCP, InfluxDB, and Prometheus, showing the project expanding from a CLI into a telemetry collection suite.

### 采用历史

In October 2022, Nokia donated gNMIc to OpenConfig, moving it from a vendor-originated tool into the OpenConfig organization. That transition mattered because gNMI itself is an OpenConfig-centered interface for model-driven network telemetry and configuration.

### 使用方式

Network engineers use gNMIc to inspect device capabilities, get and set model paths, subscribe to telemetry streams, browse YANG paths interactively, and collect telemetry into Prometheus, Kafka, NATS, InfluxDB, OpenTelemetry, and similar systems. The documentation emphasizes flags, environment variables, config files, multi-target operations, and multiple subscriptions.

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

For package maintainers and network automation users, gNMIc is significant because it makes a specialized gRPC/YANG protocol available as a single installable binary. It bridges lab one-liners, CI validation, and production-style telemetry pipelines without forcing every operator to write a custom gNMI client.

### 时间线

- 2020-03-24: Changelog records v0.0.1.
- 2020-07-16: v0.1.0 adds customizable NATS/STAN output subjects.
- 2020-10-21: v0.4.0 adds the prompt command and Prometheus output support.
- 2022-10: Nokia donates gNMIc to OpenConfig.

### Related projects

- gNMIc is tied to OpenConfig models, the gNMI protocol, YANG tooling, Prometheus, Grafana, Kafka, NATS, InfluxDB, OpenTelemetry, and network lab tools such as Containerlab.

### 来源

- <https://github.com/openconfig/gnmic>
- <https://gnmic.openconfig.net/>
- <https://gnmic.openconfig.net/changelog/>
- <https://netdevops.me/2022/gnmic-joins-openconfig/>


## 安全说明

没有找到 gnmic 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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: ./.gnmic.yaml, ./.gnmic.yml, ./.gnmic.toml, ./.gnmic.json, ~/.gnmic.yaml, ~/.gnmic.yml, ~/.gnmic.toml, ~/.gnmic.json, $XDG_CONFIG_HOME/gnmic/.gnmic.yaml, $XDG_CONFIG_HOME/gnmic/.gnmic.yml, $XDG_CONFIG_HOME/gnmic/.gnmic.toml, $XDG_CONFIG_HOME/gnmic/.gnmic.json
## 其他软件包管理器记录

- Nix - gnmic: normalized package name match | nixpkgs package indexes: pkgs/by-name/gn/gnmic/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/gnmic.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gnmic.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
