# 使用 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
- **版本:** 0.4.4
- **来源摘要:** Fast, partial replacement for codemod (find/replace tool for programmers)
- **主页:** <https://github.com/facebookincubator/fastmod>
- **仓库:** <https://github.com/facebookincubator/fastmod>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fastmod (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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


## Combined YAML source

View the package source record on GitHub. [combined/fastmod.yml](https://github.com/mxcl/pkgdb/blob/main/combined/fastmod.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
