macOS
brew install bsdifflocal Homebrew formula metadata
sudo port install bsdiffMacPorts ports tree · devel/bsdiff/Portfile · 来源: api.github.com
安装
brew install bsdifflocal Homebrew formula metadata
sudo port install bsdiffMacPorts ports tree · devel/bsdiff/Portfile · 来源: api.github.com
sudo apt install bsdiffDebian stable package indexes · bsdiff · 来源: deb.debian.org
sudo dnf install bsdiffFedora Rawhide package metadata · bsdiff · 来源: dl.fedoraproject.org
nix profile install nixpkgs#bsdiffnixpkgs package indexes · pkgs/by-name/bs/bsdiff/package.nix · 来源: api.github.com
sudo zypper install bsdiffopenSUSE Tumbleweed package metadata · bsdiff · 来源: download.opensuse.org
概览
Generate and apply patches to binary files
历史
bsdiff and bspatch are Colin Percival's binary diff and patch tools, best known for producing small patches for executable files. The package is tiny, old, and still important because binary delta updates remain a core packaging and updater trick.
The official page describes bsdiff and bspatch as tools for building and applying binary patches. It explains that they use suffix sorting, specifically Larsson and Sadakane's qsufsort, and exploit the way executable files change to make much smaller patches than contemporary binary patch tools.
The same page says the programs were originally named `bdiff` and `bpatch`, but were renamed because many other programs used those names. It published version 4.3 as a tarball and identifies the BSDiff 4 algorithm with Percival's 2003 paper, `Naive differences of executable code`.
By the time version 4.2 was described on the official page, bsdiff was already in the FreeBSD, NetBSD, and OpenBSD ports trees, DarwinPorts, Gentoo, and as a Python extension module. The provided package facts show wider modern packaging across Homebrew, Debian, Fedora/dnf, MacPorts, Nix, Ubuntu, and openSUSE/zypper.
bsdiff also influenced the packaging and update world indirectly: binary delta algorithms of this style are natural fits for software update systems, where shaving patch size saves bandwidth and time.
`bsdiff` compares an old file and a new file to produce a compact patch; `bspatch` applies that patch to reconstruct the new file. The package is most useful for compiled binaries and other files where line-oriented text diffs are ineffective.
The official page documents its resource profile: bsdiff is memory-hungry and runs in O((n+m) log n), while bspatch runs in O(n+m). That tradeoff is acceptable for many release pipelines because patch creation happens once, while patch application may happen many times.
bsdiff is package-nerd famous because it is a small command with an outsized effect on binary distribution. It gives maintainers a simple way to ship deltas instead of whole files, and its paper made the algorithm understandable enough to reimplement and adapt.
It is also a classic example of a package whose upstream is not a modern forge repository. Package managers preserve the tool through tarballs, patches, and downstream maintenance even without a canonical GitHub-style source-control home.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
bsdiff | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://www.daemonology.net/bsdiff/
安装元数据
| 软件包键 | brew:bsdiff |
|---|---|
| 版本 | 4.3 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/bsdiff |
| 主页 | https://www.daemonology.net/bsdiff/ |
| 上游文档 | https://www.daemonology.net/bsdiff |
| 许可证 | BSD-2-Clause |
| 源码归档 | https://deb.debian.org/debian/pool/main/b/bsdiff/bsdiff_4.3.orig.tar.gz |
| 构建依赖 | bmake |
| macOS 提供的库 | bzip2 |
| Bottle | 可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | bsdiff |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
bsdiff 4.3-23
generate/apply a patch between two binary files
https://www.daemonology.net/bsdiff
sudo apt install bsdiffbsdiff
nix profile install nixpkgs#bsdiffbsdiff 4.3-23
generate/apply a patch between two binary files
https://www.daemonology.net/bsdiff
sudo apt install bsdiffbsdiff 4.3-39.fc44
Binary diff/patch utility
http://www.daemonology.net/bsdiff/
sudo dnf install bsdiffbsdiff 4.3-6.9
Tools for binary file patches
https://daemonology.net/bsdiff
sudo zypper install bsdiffbsdiff
sudo port install bsdiff来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.