macOS
brew install f2local Homebrew formula metadata
安装
brew install f2local Homebrew formula metadata
nix profile install nixpkgs#f2nixpkgs package indexes · pkgs/by-name/f2/f2/package.nix · 来源: api.github.com
scoop install main/f2Scoop official bucket manifest trees · bucket/f2.json · 来源: api.github.com
winget install --id ayoisaiah.f2 -eWindows Package Manager source index · ayoisaiah.f2 · 来源: cdn.winget.microsoft.com
概览
Command-line batch renaming tool
历史
F2 is a cross-platform Go CLI for batch-renaming files and directories with a safety-first workflow built around dry runs, conflict detection, undo support, and rich replacement variables.
The GitHub repository was created in 2020, and the changelog lists version 0.1.0 on May 24, 2020 as the initial release. Version 1.0.0 followed on February 22, 2021 with regex filtering, capture groups, dry-run-by-default behavior, conflict detection, recursive renaming, ascending integer replacements, and undo from a map file.
The project evolved from basic batch replacement into a broader renaming toolkit. Later changelog entries added date variables, EXIF and ID3 variables, file hashes, CSV-based renaming, simple mode, find expressions, timezone-aware date handling, and performance improvements.
F2 is packaged for Homebrew, Nix, Scoop, and winget in the input data, matching its cross-platform pitch. Its adoption path is typical for Go CLIs: single executable, prebuilt releases, and enough safety affordances to be trusted for destructive filesystem operations.
F2 is used for command-line batch renames where shell loops become risky or unreadable: regex replacements, capture-group rewrites, recursive directory changes, media-library organization using EXIF or ID3 metadata, CSV-driven rename maps, conflict resolution, and undoing completed operations.
The official docs emphasize that F2 defaults to a preview workflow. Users review the proposed changes before executing them, which is the main practical distinction between F2 and a quick `rename`, `mv`, or shell one-liner.
F2 is significant as a polished example of a modern single-purpose Go CLI: prebuilt, cross-platform, heavily documented, and careful around filesystem danger. Package maintainers get one binary with no daemon, service file, or runtime configuration to shepherd.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
f2 | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/ayoisaiah/f2
安装元数据
| 软件包键 | brew:f2 |
|---|---|
| 版本 | 2.2.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/f2 |
| 主页 | https://f2.freshman.tech |
| 仓库 | https://github.com/ayoisaiah/f2 |
| 上游文档 | https://github.com/ayoisaiah/f2#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/ayoisaiah/f2/archive/refs/tags/v2.2.2.tar.gz |
| 最后更新 | 2026-07-25T20:54:33-04:00 |
| Pulse | updated |
| 构建依赖 | go |
| 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 | f2 |
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
f2
nix profile install nixpkgs#f2main/f2
scoop install main/f2ayoisaiah.f2
winget install --id ayoisaiah.f2 -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.