# Install prek with Homebrew, MacPorts, Nix, scoop, winget, zypper

Fast Git hook manager written in Rust, drop-in alternative to pre-commit. Version 0.4.8 via Homebrew; verified 2026-07-04.

## Install

```sh
sudo av install brew:prek
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install prek
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install prek
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#prek
```

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

- zypper (92%):

```sh
sudo zypper install prek
```

  Evidence: openSUSE Tumbleweed package metadata: prek from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/prek
```

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

- winget (92%):

```sh
winget install --id j178.Prek -e
```

  Evidence: Windows Package Manager source index: j178.Prek from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:prek
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/prek>
- **Version:** 0.4.8
- **Source summary:** Fast Git hook manager written in Rust, drop-in alternative to pre-commit
- **Homepage:** <https://prek.j178.dev/>
- **Repository:** <https://github.com/j178/prek>
- **Upstream docs:** <https://prek.j178.dev/>
- **License:** MIT
- **Source archive:** <https://github.com/j178/prek/archive/refs/tags/v0.4.8.tar.gz>
- **Last updated:** 2026-07-04T15:28:32Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- prek (cli)
- prek (alias)

## Build dependencies

- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.4.8
- Package-manager updated: 2026-07-04
- Local data: ok
- Upstream repository: https://github.com/j178/prek
- Upstream latest detected: v0.4.8 (current)

## Security Notes

No matching local secret-handling manifest was found for prek. Nucleus package metadata is still published here so future coverage has a stable package URL.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: prek.toml, .pre-commit-config.yaml, .pre-commit-config.yml, $XDG_CONFIG_HOME/prek/prek.toml, ~/.config/prek/prek.toml
- Windows: %APPDATA%\prek\prek.toml
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** prek
- **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:** head, stable

## Other Package-Manager Records

- Nix - prek: normalized package name match | nixpkgs package indexes: pkgs/by-name/pr/prek/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - prek - 0.4.4-1.1: normalized package name match | openSUSE Tumbleweed package metadata: prek from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Reimagined version of pre-commit, built in Rust | https://github.com/j178/prek
- zypper - prek-bash-completion - 0.4.4-1.1: normalized package name match | openSUSE Tumbleweed package metadata: prek-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Bash Completion for prek | https://github.com/j178/prek
- zypper - prek-fish-completion - 0.4.4-1.1: normalized package name match | openSUSE Tumbleweed package metadata: prek-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Fish Completion for prek | https://github.com/j178/prek
- zypper - prek-zsh-completion - 0.4.4-1.1: normalized package name match | openSUSE Tumbleweed package metadata: prek-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Zsh Completion for prek | https://github.com/j178/prek
- MacPorts - prek: normalized package name match | MacPorts ports tree: devel/prek/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/prek: normalized package name match | Scoop official bucket manifest trees: bucket/prek.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - j178.Prek: normalized package name match | Windows Package Manager source index: j178.Prek from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [codelimit](https://www.automicvault.com/pkg/brew/codelimit/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, pre-commit.
- [typos-cli](https://www.automicvault.com/pkg/brew/typos-cli/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, rust.
- [jscpd](https://www.automicvault.com/pkg/brew/jscpd/) - Shares av.db curated category or tags: cli, code-quality, developer-tools.
- [precious](https://www.automicvault.com/pkg/brew/precious/) - Shares av.db curated category or tags: cli, code-quality, developer-tools.
- [sonar-scanner](https://www.automicvault.com/pkg/brew/sonar-scanner/) - Shares av.db curated category or tags: cli, code-quality, developer-tools.
- [tagref](https://www.automicvault.com/pkg/brew/tagref/) - Shares av.db curated category or tags: cli, code-quality, developer-tools.
- [addlicense](https://www.automicvault.com/pkg/brew/addlicense/) - Shares av.db curated category or tags: cli, code-quality, developer-tools.
- [committed](https://www.automicvault.com/pkg/brew/committed/) - Shares av.db curated category or tags: cli, developer-tools, pre-commit, rust.
- [pre-commit](https://www.automicvault.com/pkg/brew/pre-commit/) - Local package facts share a topical domain. Shared terms: cli, code, code-quality, commit, developer.
- [hk](https://www.automicvault.com/pkg/brew/hk/) - Local package facts share a topical domain. Shared terms: cli, commit, developer, developer-tools, git.

## Combined YAML source

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


## Sources

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