# 使用 Homebrew, apt, dnf, Nix 安装 bgpq3

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

## 安装

```sh
sudo av install brew:bgpq3
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bgpq3
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install bgpq3
```

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

- dnf (92%):

```sh
sudo dnf install bgpq3
```

  证据: Fedora Rawhide package metadata: bgpq3 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#bgpq3
```

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

## 软件包事实

- **软件包键:** brew:bgpq3
- **软件包管理器:** Homebrew
- **版本:** 0.1.38
- **来源摘要:** BGP filtering automation for Cisco, Juniper, BIRD and OpenBGPD routers
- **主页:** <http://snar.spb.ru/prog/bgpq3/>
- **仓库:** <https://github.com/snar/bgpq3>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- bgpq3 (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

bgpq3 is a command-line BGP filter generator for turning Internet Routing Registry data into router policy snippets. Its niche is operational rather than decorative: it helps network operators convert AS sets, route sets, and prefixes into vendor-specific prefix lists, route filters, AS-path lists, and related configuration.

### 项目历史

The public repository history begins in 2007 with a commit described as a complete rewrite of bgpq, making bgpq3 the maintained successor in that small family of IRR-to-router-policy tools. The README documents output modes for Cisco, Juniper, BIRD, OpenBGPD, Nokia SR OS, Huawei, JSON, and user-defined formats, reflecting years of operator-driven feature accretion rather than a one-time utility script.

The changelog shows bgpq3 tracking the operational realities of BGP: 32-bit ASNs, AS23456 transition handling, private/documentation ASNs, IPv6, route-server behavior, vendor-specific syntax, and IRRd query behavior. Later releases added and refined OpenBGPD, Nokia, Huawei, Juniper route-filter-list, mixed address-family, and JunOS as-list support.

### 采用历史

The package has escaped a single-source niche: the input metadata lists packages in Homebrew, Debian, Fedora/DNF, Nix, and Ubuntu. The changelog also credits reports or contributions from network operators and routing-tool maintainers including Job Snijders, Claudio Jeker, Denis Fondras, and others, which is the adoption pattern typical of infrastructure CLI tools.

### 使用方式

Operators invoke bgpq3 with ASNs, AS sets, route sets, or prefixes and choose output flags for the target routing platform. Common use cases include generating Juniper prefix lists, Cisco prefix lists or AS-path access lists, BIRD filters, OpenBGPD sets, JSON output, and filtered IRR source queries against a whois/IRRd server.

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

For package and network-ops nerds, bgpq3 is valuable because it packages an awkward operational workflow into a reproducible Unix command: pull IRR objects, expand recursive AS sets, aggregate prefixes when possible, and emit router configuration that can be reviewed or automated. It sits at the intersection of package-manager convenience and BGP hygiene.

### 时间线

- 2007: Public repository history starts with a complete rewrite of bgpq into bgpq3.
- 2014: BIRD output support and JSON/as-path improvements appear in the changelog.
- 2016: OpenBGPD output support lands.
- 2018: Nokia SR OS, Huawei output, OpenBGPD prefix-set, and Juniper route-filter-list work are recorded.
- 2021: Version 0.1.36 adds route-server import AS-path handling and more vendor fixes.
- 2025: Version 0.1.38 updates IRRd answer handling and JunOS as-list support.

### Related projects

- bgpq4 is the direct successor/fork line for users who want the newer bgpq implementation. Related routing targets and data sources include IRRd/RADB-style IRR databases, BIRD, OpenBGPD, Cisco IOS/IOS XR, Juniper JunOS, Nokia SR OS, and Huawei router syntax.

### 来源

- <https://api.github.com/repos/snar/bgpq3>
- <https://github.com/snar/bgpq3#readme>
- <https://raw.githubusercontent.com/snar/bgpq3/master/CHANGES>
- input.source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - bgpq3 - 0.1.36.1-1: normalized package name match | Debian stable package indexes: bgpq3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | automatic BGP filter generator using RADB data | http://snar.spb.ru/prog/bgpq3/
- Nix - bgpq3: normalized package name match | nixpkgs package indexes: pkgs/by-name/bg/bgpq3/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - bgpq3 - 0.1.36.1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: bgpq3 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | automatic BGP filter generator using RADB data | http://snar.spb.ru/prog/bgpq3/
- dnf - bgpq3 - 0.1.38-4.fc45: normalized package name match | Fedora Rawhide package metadata: bgpq3 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Automate BGP filter generation based on routing database information | http://snar.spb.ru/prog/bgpq3/


## Combined YAML source

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