macOS
brew install bfslocal Homebrew formula metadata
sudo port install bfsMacPorts ports tree · sysutils/bfs/Portfile · 来源: api.github.com
安装
brew install bfslocal Homebrew formula metadata
sudo port install bfsMacPorts ports tree · sysutils/bfs/Portfile · 来源: api.github.com
sudo apk add bfsAlpine Linux edge package indexes · bfs · 来源: dl-cdn.alpinelinux.org
sudo dnf install bfsFedora Rawhide package metadata · bfs · 来源: dl.fedoraproject.org
nix profile install nixpkgs#bfsnixpkgs package indexes · pkgs/by-name/bf/bfs/package.nix · 来源: api.github.com
sudo pacman -S bfsArch Linux sync databases · bfs · 来源: geo.mirror.pkgbuild.com
概览
Breadth-first version of find
历史
bfs is a C implementation of a breadth-first variant of the Unix find command. It aims to remain compatible with POSIX, GNU, BSD, and macOS find behavior while adding a friendlier command-line parser, diagnostics, and practical extensions.
The official repository was created in June 2015. Early tags show a pre-1.0 series before the project reached 1.0 in 2017, followed by 2.0 in October 2020, 3.0 in July 2023, 4.0 in August 2024, and active 4.1.x maintenance through June 2026.
The README documents the core design choice: unlike traditional depth-first find traversal, bfs lists shallower paths first. Around that foundation it adds compatibility with several find dialects, argument-order leniency, typo suggestions, expression warnings, and convenience extensions such as -exclude and -nohidden.
bfs has unusually broad packaging for a small Unix utility. Its README lists packages for Alpine, Arch, Debian/Ubuntu, Fedora, Gentoo, Guix, macOS, and other systems, and the input separately records Homebrew, MacPorts, Nix, pacman, zypper, Debian, Ubuntu, and Alpine packaging.
That packaging footprint reflects the niche: bfs is not a replacement for every find use, but it is attractive to users who want familiar find syntax with better traversal behavior, diagnostics, and cross-platform consistency.
Users run bfs much like find: searching directory trees by name, type, size, metadata, predicates, and actions. Its breadth-first order can surface shallow matches earlier, and its parser accepts common argument placements that traditional find variants reject.
The tool is also useful in scripts when its extensions matter, but its package value is strongest for interactive shell use where friendlier errors and faster discovery of shallow matches save time.
bfs is notable to package-focused users because it reimagines one of Unix's oldest daily-driver commands without throwing away compatibility. That makes it a rare modern system utility that can be installed next to the base tool and immediately compared on real workflows.
Its significance is not just breadth-first search. The interesting packaging story is a small, carefully maintained C utility earning broad distro adoption by being faster to understand than find, stricter about warning users when expressions are probably wrong, and portable enough to ship across Linux and macOS ecosystems.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
bfs | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/tavianator/bfs
安装元数据
| 软件包键 | brew:bfs |
|---|---|
| 版本 | 4.1.4 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/bfs |
| 主页 | https://tavianator.com/projects/bfs.html |
| 仓库 | https://github.com/tavianator/bfs |
| 上游文档 | https://tavianator.com/projects/bfs.html |
| 许可证 | 0BSD |
| 源码归档 | https://github.com/tavianator/bfs/archive/refs/tags/4.1.4.tar.gz |
| 最后更新 | 2026-06-29T20:47:31Z |
| Pulse | updated |
| 依赖 | oniguruma |
| 构建依赖 | pkgconf |
| 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 | bfs |
| 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 软件包链接分开显示。
bfs 4.0.6-1
Breadth-first version of find(1)
https://github.com/tavianator/bfs
sudo apt install bfsbfs
nix profile install nixpkgs#bfsbfs 3.1.2-1build1
Breadth-first version of find(1)
https://github.com/tavianator/bfs
sudo apt install bfsbfs 4.1-r1
Breadth-first variant of the UNIX find command
https://github.com/tavianator/bfs
sudo apk add bfsbfs-bash-completion 4.1-r1
Bash completions for bfs
https://github.com/tavianator/bfs
sudo apk add bfs-bash-completionbfs-doc 4.1-r1
Breadth-first variant of the UNIX find command (documentation)
https://github.com/tavianator/bfs
sudo apk add bfs-docbfs-fish-completion 4.1-r1
Fish completions for bfs
https://github.com/tavianator/bfs
sudo apk add bfs-fish-completionbfs-zsh-completion 4.1-r1
Zsh completions for bfs
https://github.com/tavianator/bfs
sudo apk add bfs-zsh-completionbfs 4.1.2-1.fc45
A breadth-first version of the UNIX find command
https://tavianator.com/projects/bfs.html
sudo dnf install bfsbfs 4.1.2-1
A breadth-first version of find
https://tavianator.com/projects/bfs.html
sudo pacman -S bfsbfs
sudo port install bfs来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.