macOS
brew install b4local Homebrew formula metadata
安装
brew install b4local Homebrew formula metadata
sudo apk add b4Alpine Linux edge package indexes · b4 · 来源: dl-cdn.alpinelinux.org
sudo dnf install b4Fedora Rawhide package metadata · b4 · 来源: dl.fedoraproject.org
nix profile install nixpkgs#b4nixpkgs package indexes · pkgs/by-name/b4/b4/package.nix · 来源: api.github.com
sudo pacman -S b4Arch Linux sync databases · b4 · 来源: geo.mirror.pkgbuild.com
sudo zypper install b4openSUSE Tumbleweed package metadata · b4 · 来源: download.opensuse.org
概览
Tool to work with public-inbox and patch archives
历史
b4 is a kernel.org-hosted command-line tool for distributed development workflows built around mailing-list patches. It helps contributors, reviewers, and maintainers retrieve threads from public-inbox archives, prepare and send patch series, apply patches, collect trailers, and tie Git commits back to list discussion.
b4 grew out of the Linux kernel community's long-running email patch workflow. Its documentation states that it was created to make it easier for developers and maintainers to use distributed workflows that rely on patches and distribution lists for contribution and review.
The project is hosted under kernel.org's utilities namespace and its docs are divided by role: maintainers who receive and apply series, reviewers who inspect patches, and contributors who prepare and send work. That structure mirrors the social workflow of kernel development more than a generic Git porcelain.
b4's adoption follows the public-inbox and lore.kernel.org era of kernel development: instead of scraping local mailboxes, it can operate against archived mailing-list threads by message id and then produce mbox, git-am, trailer, and review workflows.
The package metadata in this batch shows b4 available through Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, Nix, and openSUSE. That is a practical sign that the tool moved from kernel-maintainer specialty into the general Unix developer toolbox.
Maintainers use b4 commands such as mbox, am, shazam, diff, pr, ty, review, and kr to fetch patch threads, apply series, compare revisions, process pull requests, send feedback, and work with contributor keys.
Contributors use b4 prep, send, and trailers to prepare patch series, send mail, and collect reviewed-by or acked-by trailers from mailing-list discussion. Configuration is intentionally Git-native, using system, user, repository, and optional .b4-config settings.
b4 is package-nerd gold because it packages a culture, not just a command. It encodes the Linux kernel's email-first review workflow into reproducible CLI steps that can be installed on macOS and Linux without joining the whole kernel.org infrastructure by hand.
It also marks the modern public-inbox turn in open-source packaging: source history, review, and artifact provenance are stitched together by message ids, Link trailers, and git metadata rather than by a web forge alone.
安全态势
没有找到 b4 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
/etc/gitconfig~/.gitconfigsomerepo/.git/config.b4-configCredential-bearing paths to review before unattended agent runs.
/etc/gitconfig~/.gitconfigsomerepo/.git/config可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
b4 | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://b4.docs.kernel.org/en/latest/
安装元数据
| 软件包键 | brew:b4 |
|---|---|
| 版本 | 0.15.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/b4 |
| 主页 | https://b4.docs.kernel.org/en/latest/ |
| 仓库 | https://git.kernel.org/pub/scm/utils/b4/b4.git |
| 上游文档 | https://b4.docs.kernel.org/en/latest |
| 许可证 | GPL-2.0-or-later |
| 源码归档 | https://files.pythonhosted.org/packages/c3/34/7f17fce52acb992d7b70aaa956e6dec4dc432ce8d195a176f232fcd6315c/b4-0.15.2.tar.gz |
| 最后更新 | 2026-05-20T10:36:58Z |
| Pulse | updated |
| 依赖 | certifi, cffi, libsodium, python@3.14 |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | b4 |
| Version Scheme | 0 |
| Revision | 2 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
b4 0.14.2-2
helper utility to work with patches made available via a public-inbox archive
https://git.kernel.org/pub/scm/utils/b4/b4.git
sudo apt install b4b4
nix profile install nixpkgs#b4b4 0.13.0-1
helper utility to work with patches made available via a public-inbox archive
https://git.kernel.org/pub/scm/utils/b4/b4.git
sudo apt install b4b4 0.15.2-r0
Tool to help with email-based patch workflows
sudo apk add b4b4-doc 0.15.2-r0
Tool to help with email-based patch workflows (documentation)
sudo apk add b4-docb4-pyc 0.15.2-r0
Precompiled Python bytecode for b4
sudo apk add b4-pycb4 0.14.3-3.fc45
A helper tool to work with public-inbox and patch series
https://git.kernel.org/pub/scm/utils/b4/b4.git
sudo dnf install b4b4 0.15.2-1
Helper utility to work with patches made available via a public-inbox archive like lore.kernel.org.
https://git.kernel.org/pub/scm/utils/b4/b4.git/
sudo pacman -S b4b4 0.15.2-1.1
Helper scripts for kernel.org patches
https://git.kernel.org/pub/scm/utils/b4/b4.git
sudo zypper install b4来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.