# 使用 Homebrew, scoop 安装 brename

查看 brename 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:brename
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install brename
```

  证据: local Homebrew formula metadata

### Windows

- Scoop (92%):

```sh
scoop install main/brename
```

  证据: Scoop official bucket manifest trees: bucket/brename.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:brename
- **软件包管理器:** Homebrew
- **版本:** 2.14.0
- **来源摘要:** Cross-platform command-line tool for safe batch renaming via regular expressions
- **主页:** <https://github.com/shenwei356/brename>
- **仓库:** <https://github.com/shenwei356/brename>
- **最后更新:** 2026-07-26T10:56:35+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- brename (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.14.0
## 项目历史与用法

brename is a Go command-line batch-renaming tool focused on safe regular-expression based file and directory renames. Its distinguishing features are dry runs, conflict detection, cross-platform path safety, filters, recursive operation, and undo support.

### 项目历史

The GitHub repository was created in September 2013. The README presents brename as a practical cross-platform tool for safely batch renaming files and directories via regular expression.

The project evolved around safety checks that plain mv or rename commands do not provide, such as detecting existing targets, newly overwritten paths, empty target paths, and Windows-problematic path endings.

### 采用历史

The official README lists prebuilt release binaries for Linux, macOS, and Windows, plus installation through Conda, Homebrew, Arch AUR, Scoop, and source builds. The input package facts also record Homebrew and Scoop packaging.

Its adoption is niche but practical: users who need repeatable bulk renames get a single static-style CLI rather than shelling together find, sed, mv, and platform-specific rename variants.

### 使用方式

The README documents pattern replacement with -p and -r, dry-run mode, include and exclude filters, recursive operation, directory renaming, key-value replacement files, ascending-number replacements, extension preservation, listing matches, and undoing the last successful operation.

Cross-platform safety is a major usage theme. The README calls out case-insensitive filesystems such as FAT and NTFS and documents flags for case-insensitive or case-sensitive path handling.

### 为什么软件包爱好者会关心

brename is not a foundational package, but it is a useful example of a modern single-purpose Go CLI that packages well across Homebrew, Scoop, Conda, and downloadable release archives.

For package maintainers, it sits in the long family of rename tools while emphasizing safety and portability rather than just exposing a regular-expression substitution primitive.

### 时间线

- 2013-09: The brename GitHub repository was created.
- 2025: Official repository metadata showed activity into August 2025.
- 2025: The README documented brename 2.14.0 release binaries for Linux, macOS, and Windows.

### Related projects

- Traditional Unix mv and rename commands are the simpler tools brename's safety checks are meant to improve upon.
- Go is the implementation language and source-build toolchain named by the README.
- Scoop and Homebrew are package-manager channels documented by the README and input facts.

### 来源

- <https://api.github.com/repos/shenwei356/brename>
- <https://github.com/shenwei356/brename#readme>
- <https://github.com/shenwei356/brename/releases>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Scoop - main/brename: normalized package name match | Scoop official bucket manifest trees: bucket/brename.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/brename.yml](https://github.com/mxcl/pkgdb/blob/main/combined/brename.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
