# 使用 Homebrew, Nix 安装 monocle

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

## 安装

```sh
sudo av install brew:monocle
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install monocle
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#monocle
```

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

## 软件包事实

- **软件包键:** brew:monocle
- **软件包管理器:** Homebrew
- **版本:** 1.4.0
- **来源摘要:** See through all BGP data with a monocle
- **主页:** <https://github.com/bgpkit/monocle>
- **仓库:** <https://github.com/bgpkit/monocle>
- **最后更新:** 2026-07-21T19:06:50Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- monocle (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Monocle is a Rust command-line and library tool in the BGPKIT family for working with public Border Gateway Protocol data. BGPKIT's 2022 year-in-review introduced it as the suite's first investigative tool, designed to tie together BGPKIT parser and broker work so users could quickly find relevant BGP announcements from public collector data.

### 项目历史

The tool's scope expanded from early parse, search, time-conversion, and whois utilities into a broader BGP analysis workstation. The project README and BGPKIT tool page describe commands for parsing local or remote MRT files, searching public archives, reconstructing RIB state at timestamps, inspecting ASNs and prefixes, validating routes with RPKI data, looking up country, IP, AS relationship, and prefix-to-ASN data, and running an HTTP/SSE server mode for programmatic access.

### 使用方式

Its package-manager niche is narrow but useful for network operators, routing-security researchers, and incident analysts who want a local CLI instead of stitching together Route Views, RIPE RIS, RPKI, WHOIS, and BGPKIT APIs by hand. The LACNIC republication of a BGPKIT article by Mingwei Zhang notes version 0.5 support for Cloudflare Radar BGP routing statistics and prefix-to-origin APIs, illustrating how the tool fits into operational routing-analysis workflows.

### 来源

- <https://bgpkit.com/blog/2022-year-in-review/>
- <https://bgpkit.com/tools/monocle/>
- <https://blog.lacnic.net/en/command-line-routing-stats-with-bgpkit-monocle-and-cloudflare-radar-api/>
- <https://github.com/bgpkit/monocle>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - monocle: normalized package name match | nixpkgs package indexes: pkgs/by-name/mo/monocle/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/monocle.yml](https://github.com/mxcl/pkgdb/blob/main/combined/monocle.yml)


## 来源

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