# Installer pre-commit avec Homebrew, apk, apt, dnf, MacPorts, Nix, pacman

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de pre-commit pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:pre-commit
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install pre-commit
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install pre-commit
```

  Preuve: MacPorts ports tree: python/pre-commit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add pre-commit
```

  Preuve: Alpine Linux edge package indexes: pre-commit from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install pre-commit
```

  Preuve: Debian stable package indexes: pre-commit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install pre-commit
```

  Preuve: Fedora Rawhide package metadata: pre-commit from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#pre-commit
```

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

- pacman (92%):

```sh
sudo pacman -S pre-commit
```

  Preuve: Arch Linux sync databases: pre-commit from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## Faits du paquet

- **Clé du paquet:** brew:pre-commit
- **Gestionnaire de paquets:** Homebrew
- **Version:** 4.6.1
- **Résumé source:** Framework for managing multi-language pre-commit hooks
- **Page d'accueil:** <https://pre-commit.com/>
- **Dépôt:** <https://github.com/pre-commit/pre-commit>
- **Dernière mise à jour:** 2026-07-23T01:08:54Z
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- pre-commit (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 4.6.1

## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals


## 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: .pre-commit-config.yaml
## Autres enregistrements de gestionnaires de paquets

- Debian apt - pre-commit - 4.2.0-2: normalized package name match | Debian stable package indexes: pre-commit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Git pre-commit hook framework | https://pre-commit.com
- Nix - pre-commit: normalized package name match | nixpkgs package indexes: pkgs/by-name/pr/pre-commit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - pre-commit - 3.6.2-1: normalized package name match | Ubuntu 24.04 LTS package indexes: pre-commit from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Git pre-commit hook framework | https://pre-commit.com
- apk - pre-commit - 4.6.1-r0: normalized package name match | Alpine Linux edge package indexes: pre-commit from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | framework for managing and maintaining multi-language pre-commit hooks | https://pre-commit.com
- apk - pre-commit-pyc - 4.6.1-r0: normalized package name match | Alpine Linux edge package indexes: pre-commit-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for pre-commit | https://pre-commit.com
- dnf - pre-commit - 4.6.1-1.fc45: normalized package name match | Fedora Rawhide package metadata: pre-commit from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Framework for managing and maintaining multi-language pre-commit hooks | https://pre-commit.com
- pacman - pre-commit - 4.6.1-1: normalized package name match | Arch Linux sync databases: pre-commit from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A framework for managing and maintaining multi-language pre-commit hooks | https://github.com/pre-commit/pre-commit
- MacPorts - pre-commit: normalized package name match | MacPorts ports tree: python/pre-commit/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/pre-commit.yml](https://github.com/mxcl/pkgdb/blob/main/combined/pre-commit.yml)


## Sources

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