# Install fastmod with Homebrew, MacPorts, Nix

Fast, partial replacement for codemod (find/replace tool for programmers). Version 0.4.4 via Homebrew; verified from local package data. Also installable with nix: nix profile install nixpkgs#fastmod.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install fastmod
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fastmod
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:fastmod
- **Package manager:** Homebrew
- **Version:** 0.4.4
- **Source summary:** Fast, partial replacement for codemod (find/replace tool for programmers)
- **Homepage:** <https://github.com/facebookincubator/fastmod>
- **Repository:** <https://github.com/facebookincubator/fastmod>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- fastmod (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.4.4
## Project history and usage

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

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

generalized runtime or code generation signal.

- **Geiger risk:** yellow / medium
- generalized runtime or code generation signal

## Other Package-Manager Records

- 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)


## Sources

- 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
