# Install bgpq3 with Homebrew, apt, dnf, Nix

BGP filtering automation for Cisco, Juniper, BIRD and OpenBGPD routers. Version 0.1.38 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install bgpq3
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install bgpq3
```

  Evidence: 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
```

  Evidence: Fedora Rawhide package metadata: bgpq3 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#bgpq3
```

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

## Package facts

- **Package key:** brew:bgpq3
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/bgpq3>
- **Version:** 0.1.38
- **Source summary:** BGP filtering automation for Cisco, Juniper, BIRD and OpenBGPD routers
- **Homepage:** <http://snar.spb.ru/prog/bgpq3/>
- **Repository:** <https://github.com/snar/bgpq3>
- **Upstream docs:** <https://github.com/snar/bgpq3#readme>
- **License:** BSD-2-Clause
- **Source archive:** <https://github.com/snar/bgpq3/archive/refs/tags/v0.1.38.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- bgpq3 (cli)
- bgpq3 (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.1.38
- Local data: ok
- Upstream repository: https://github.com/snar/bgpq3
- Upstream latest detected: v0.1.38 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** bgpq3
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- 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-3.fc44: normalized package name match | Fedora Rawhide package metadata: bgpq3 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Automate BGP filter generation based on routing database information | http://snar.spb.ru/prog/bgpq3/


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Web development packages](https://www.automicvault.com/pkg/web-dev-tools/) - Matched web development metadata.
- [Productivity CLI packages](https://www.automicvault.com/pkg/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [bgpq4](https://www.automicvault.com/pkg/brew/bgpq4/) - Package name indicates the same formula family.
- [bgpdump](https://www.automicvault.com/pkg/brew/bgpdump/) - Shares av.db curated category or tags: bgp, cli, networking.
- [bgpstream](https://www.automicvault.com/pkg/brew/bgpstream/) - Shares av.db curated category or tags: bgp, cli, networking.
- [monocle](https://www.automicvault.com/pkg/brew/monocle/) - Shares av.db curated category or tags: bgp, cli, networking.
- [rpki-client](https://www.automicvault.com/pkg/brew/rpki-client/) - Shares av.db curated category or tags: bgp, cli, networking.
- [zebra](https://www.automicvault.com/pkg/brew/zebra/) - Shares av.db curated category or tags: bgp, cli, networking.
- [activemq](https://www.automicvault.com/pkg/brew/activemq/) - Shares av.db curated category or tags: cli, networking.
- [adns](https://www.automicvault.com/pkg/brew/adns/) - Shares av.db curated category or tags: cli, networking.

## Combined YAML source

View the package source record on GitHub. [combined/bgpq3.yml](https://github.com/automic-vault/db/blob/main/combined/bgpq3.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
