# 使用 Homebrew, MacPorts, Nix 安装 fastmod

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

## 安装

```sh
sudo av install brew:fastmod
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fastmod
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fastmod
```

  证据: MacPorts ports tree: devel/fastmod/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#fastmod
```

  证据: nixpkgs package indexes: pkgs/by-name/fa/fastmod/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:fastmod
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/fastmod>
- **版本:** 0.4.4
- **来源摘要:** Fast, partial replacement for codemod (find/replace tool for programmers)
- **主页:** <https://github.com/facebookincubator/fastmod>
- **仓库:** <https://github.com/facebookincubator/fastmod>
- **上游文档:** <https://github.com/facebookincubator/fastmod#readme>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/facebookincubator/fastmod/archive/refs/tags/v0.4.4.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- fastmod (cli)
- fastmod (别名)

## 构建依赖

- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.4.4
- 本地数据: OK
- 上游仓库: https://github.com/facebookincubator/fastmod
- 检测到的最新版本: v0.4.4 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

fastmod is a Rust command-line tool from Facebook Incubator for fast, regex-based, interactive find-and-replace across codebases.

### 项目历史

The project was created publicly in 2018 as a fast partial replacement for Facebook's codemod. Its README is explicit that the design target is interactive review followed by applying a regex replacement broadly.

### 采用历史

fastmod's adoption is concentrated among programmers doing large codebase refactors. It is primarily supported on macOS and Linux, installable with Cargo, and packaged by developer-oriented package managers.

### 使用方式

A typical invocation supplies a regex, replacement text, and files or directories to process. fastmod walks directories in parallel, respects ignore rules, shows colored diffs, and lets the user accept, reject, or edit changes.

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

fastmod is notable because it brings the ripgrep ecosystem's ignore and grep crates to codemod-style source editing: boring Unix CLI inputs, Rust speed, and human-reviewed patch application.

### 时间线

- 2018: The public GitHub repository is created.
- 2020: v0.4.0 is released.
- 2023: v0.4.4 is released.

### Related projects

- fastmod is directly positioned as a partial replacement for codemod and uses Rust regex, ignore, and grep libraries.

### 来源

- <https://github.com/facebookincubator/fastmod>
- <https://github.com/facebookincubator/fastmod#readme>
- <https://api.github.com/repos/facebookincubator/fastmod/releases>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** fastmod
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Nix - fastmod: normalized package name match | nixpkgs package indexes: pkgs/by-name/fa/fastmod/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - fastmod: normalized package name match | MacPorts ports tree: devel/fastmod/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [pyupgrade](https://www.automicvault.com/zh-hans/pkg/brew/pyupgrade/) - Shares av.db curated category or tags: cli, code-modification, developer-tools, refactoring.
- [codelimit](https://www.automicvault.com/zh-hans/pkg/brew/codelimit/) - Shares av.db curated category or tags: cli, developer-tools, refactoring.
- [comby](https://www.automicvault.com/zh-hans/pkg/brew/comby/) - Shares av.db curated category or tags: cli, developer-tools, refactoring.
- [repren](https://www.automicvault.com/zh-hans/pkg/brew/repren/) - Shares av.db curated category or tags: cli, developer-tools, refactoring.
- [sd](https://www.automicvault.com/zh-hans/pkg/brew/sd/) - Shares av.db curated category or tags: cli, developer-tools, find-and-replace.
- [srgn](https://www.automicvault.com/zh-hans/pkg/brew/srgn/) - Shares av.db curated category or tags: cli, developer-tools, refactoring.
- [tfautomv](https://www.automicvault.com/zh-hans/pkg/brew/tfautomv/) - Shares av.db curated category or tags: cli, developer-tools, refactoring.
- [tfmv](https://www.automicvault.com/zh-hans/pkg/brew/tfmv/) - Shares av.db curated category or tags: cli, developer-tools, refactoring.

## Combined YAML source

View the package source record on GitHub. [combined/fastmod.yml](https://github.com/automic-vault/db/blob/main/combined/fastmod.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
