# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/monocle>
- **版本:** 1.4.0
- **来源摘要:** See through all BGP data with a monocle
- **主页:** <https://github.com/bgpkit/monocle>
- **仓库:** <https://github.com/bgpkit/monocle>
- **许可证:** MIT
- **源码归档:** <https://github.com/bgpkit/monocle/archive/refs/tags/v1.4.0.tar.gz>
- **最后更新:** 2026-07-21T19:06:50Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- monocle (cli)
- monocle (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.4.0
- 管理器更新时间: 2026-07-21
- 本地数据: OK
- 上游仓库: https://github.com/bgpkit/monocle
- 检测到的最新版本: v1.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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** monocle
- **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

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

- 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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [iproute2mac](https://pkg.so/zh-hans/brew/iproute2mac/) - Shares pkgdb curated category or tags: cli, networking, routing.
- [bore-cli](https://pkg.so/zh-hans/brew/bore-cli/) - Shares pkgdb curated category or tags: cli, networking, rust.
- [iproute2](https://pkg.so/zh-hans/brew/iproute2/) - Shares pkgdb curated category or tags: cli, networking, routing.
- [cloudflare-quiche](https://pkg.so/zh-hans/brew/cloudflare-quiche/) - Shares pkgdb curated category or tags: cli, networking, rust.
- [bgpq4](https://pkg.so/zh-hans/brew/bgpq4/) - Shares pkgdb curated category or tags: bgp, cli, networking, routing.
- [bgpstream](https://pkg.so/zh-hans/brew/bgpstream/) - Shares pkgdb curated category or tags: bgp, cli, networking, routing.
- [asroute](https://pkg.so/zh-hans/brew/asroute/) - Shares pkgdb curated category or tags: cli, networking, routing, rust.
- [bgpdump](https://pkg.so/zh-hans/brew/bgpdump/) - Shares pkgdb curated category or tags: bgp, cli, networking, routing.

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