Automic VaultAutomic Vault

brew

Install bgpq4 with Homebrew, apk, apt, dnf, Nix

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

install

Additional install commands

macOS

Homebrewverified · 100%
brew install bgpq4

local Homebrew formula metadata

Linux

Alpine Linux apkverified · 92%
sudo apk add bgpq4

Alpine Linux edge package indexes · bgpq4 · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install bgpq4

Debian stable package indexes · bgpq4 · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install bgpq4

Fedora Rawhide package metadata · bgpq4 · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#bgpq4

nixpkgs package indexes · pkgs/by-name/bg/bgpq4/package.nix · source: api.github.com

overview

Package summary

BGP filtering automation for Cisco, Juniper, BIRD and OpenBGPD routers

Commands and aliases

  • bgpq4

history

Project history and usage

bgpq4 is the modern bgpq-family CLI for generating router filters from IRR data. It keeps the operator-friendly model of bgpq3 while focusing on newer IRRd behavior, newer vendor outputs, and ongoing maintenance.

Project history

The bgpq4 changelog explicitly records version 0.0.1 in 2019 as the point where bgpq3 was forked into bgpq4. The repository preserves older bgpq3 history back to the 2007 rewrite, but the bgpq4 line is documented as the post-2019 fork.

Early bgpq4 releases removed legacy options, improved performance by using IRRd 4's A query when available, and added Mikrotik support. Later releases reorganized the source tree, adopted OpenBSD-style formatting, reduced memory use with a red-black tree for ASN storage, and added outputs such as Junos as-path-origin, Nokia SR Linux, Mikrotik RouterOS v6/v7, Arista EOS, Huawei XPL, and other router-policy formats.

Adoption history

The input metadata lists bgpq4 packages across Alpine, Homebrew, Debian, Fedora/DNF, Nix, and Ubuntu, and the upstream README includes a packaging-status badge. That breadth matters because bgpq4 is the sort of tool network engineers want available on jump hosts, CI runners, and laptops without hand-building it.

How it is used

The README describes bgpq4 as producing prefix lists, extended access lists, policy-statement terms, and AS-path lists from IRR objects. Operators pass ASNs, AS sets, route sets, or prefixes, select sources such as RPKI, AFRINIC, ARIN, APNIC, LACNIC, and RIPE, and choose target syntax for Cisco, Juniper, BIRD, OpenBGPD, Nokia, Mikrotik, Huawei, Arista, or JSON output.

Why package nerds care

bgpq4 is a package-nerd favorite because it condenses a brittle BGP edge-operations task into a single auditable binary. It is small C code, has no daemon to operate, emits plain text suitable for config generation pipelines, and exists precisely where package managers shine: getting a boring but critical network-ops tool onto many Unix-like systems.

Timeline

  • 2007: The inherited bgpq-family Git history begins with the bgpq3 rewrite.
  • 2019: bgpq3 is forked into bgpq4; early releases remove legacy flags and use IRRd 4's A query when available.
  • 2021: Version 1.3 reorganizes the repository, reformats large parts of the code, and reduces memory use.
  • 2022: Version 1.5 adds Junos as-path-origin support.
  • 2023: Versions 1.10 and 1.11 add Nokia SR Linux support and tighten AS23456 handling.
  • 2026: Version 1.16 is released.

Related projects

  • bgpq3 is the direct predecessor. The tool also lives beside IRRd, RADB-style IRR services, RPKI-aware workflows, and router stacks such as Cisco IOS/IOS XR, JunOS, BIRD, OpenBGPD, Nokia SR OS/SR Linux, Mikrotik RouterOS, Huawei, and Arista EOS.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 3 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
bgpq4cliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version1.16
manager updated
local dataok
upstreamcurrent
latest detected1.16

https://github.com/bgp/bgpq4

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:bgpq4
Version1.16
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/bgpq4
Homepagehttps://github.com/bgp/bgpq4
Repositoryhttps://github.com/bgp/bgpq4
Upstream docshttps://github.com/bgp/bgpq4#readme
LicenseBSD-2-Clause
Source archivehttps://github.com/bgp/bgpq4/archive/refs/tags/1.16.tar.gz
Build dependenciesautoconf, automake, libtool
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namebgpq4
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

bgpq4 1.12-1

automatic BGP filter generator using IRR routing data

https://github.com/bgp/bgpq4

sudo apt install bgpq4
  • Section: net
  • Architecture: amd64
  • 1 dependencies
  • normalized package name match
  • Matched by: Bgpq4
Debian stable package indexes · deb.debian.org · Debian stable package indexes: bgpq4 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

bgpq4

nix profile install nixpkgs#bgpq4
  • normalized package name match
  • Matched by: Bgpq4
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/bg/bgpq4/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

bgpq4 1.12-1

automatic BGP filter generator using IRR routing data

https://github.com/bgp/bgpq4

sudo apt install bgpq4
  • Section: universe/net
  • Architecture: amd64
  • 1 dependencies
  • normalized package name match
  • Matched by: Bgpq4
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: bgpq4 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

bgpq4 1.16-r0

bgp filtering automation tool

https://github.com/bgp/bgpq4

sudo apk add bgpq4
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: bgpq4
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Bgpq4
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: bgpq4 from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

bgpq4-doc 1.16-r0

bgp filtering automation tool (documentation)

https://github.com/bgp/bgpq4

sudo apk add bgpq4-doc
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: bgpq4
  • normalized package name match
  • Matched by: Bgpq4
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: bgpq4-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
dnf95%

bgpq4 1.16-1.fc45

Automate BGP filter generation based on routing database information

https://github.com/bgp/bgpq4

sudo dnf install bgpq4
  • License: BSD-2-Clause AND BSD-3-Clause AND ISC AND LicenseRef-Fedora-Public-Domain
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: bgpq4
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Bgpq4
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: bgpq4 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

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