# Install gitleaks

Audit git repos for secrets. Version 8.30.1 via Homebrew; verified 2026-03-21.

## Install

```sh
sudo av install brew:gitleaks
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gitleaks
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gitleaks
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install gitleaks
```

  Evidence: Debian stable package indexes: gitleaks from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install gitleaks
```

  Evidence: Fedora Rawhide package metadata: gitleaks from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#gitleaks
```

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

- pacman (92%):

```sh
sudo pacman -S gitleaks
```

  Evidence: Arch Linux sync databases: gitleaks from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install gitleaks
```

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

### Windows

- Chocolatey (92%):

```sh
choco install gitleaks
```

  Evidence: Chocolatey community package catalog: gitleaks from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='7.2868','dispcalgui.portable'

- Scoop (92%):

```sh
scoop install main/gitleaks
```

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

- winget (92%):

```sh
winget install --id Gitleaks.Gitleaks -e
```

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

## Package Facts

- **Package key:** brew:gitleaks
- **Package manager:** Homebrew
- **Package manager URL:** <https://formulae.brew.sh/formula/gitleaks>
- **Version:** 8.30.1
- **Source summary:** Audit git repos for secrets
- **Homepage:** <https://gitleaks.io/>
- **Repository:** <https://github.com/gitleaks/gitleaks>
- **Upstream docs:** <https://github.com/gitleaks/gitleaks#readme>
- **License:** MIT
- **Source archive:** <https://github.com/gitleaks/gitleaks/archive/refs/tags/v8.30.1.tar.gz>
- **Last updated:** 2026-03-21T04:20:40Z
- **Generated:** 2026-06-10T07:18:26+00:00

## Executables

- gitleaks (cli)
- gitleaks (alias)

## Build Dependencies

- go

## 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-06-10
- Package-manager version: 8.30.1
- Package-manager updated: 2026-03-21
- Local data status: ok
- Upstream repository: https://github.com/gitleaks/gitleaks
- Upstream latest detected: v8.30.1 (current)

## Notes de sécurité

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

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

- Debian apt - gitleaks - 8.16.0-1+b12: normalized package name match | Debian stable package indexes: gitleaks from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | protect and discover secrets using Gitleaks 🔑 | https://github.com/gitleaks/gitleaks
- Nix - gitleaks: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/gitleaks/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gitleaks - 8.16.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: gitleaks from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | protect and discover secrets using Gitleaks 🔑 | https://github.com/gitleaks/gitleaks
- dnf - gitleaks - 8.30.1-1.fc45: normalized package name match | Fedora Rawhide package metadata: gitleaks from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst | Scan git repos (or files) for secrets using regex and entropy | https://github.com/zricethezav/gitleaks
- pacman - gitleaks - 8.30.1-1: normalized package name match | Arch Linux sync databases: gitleaks from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Audit Git repos for secrets and keys | https://github.com/gitleaks/gitleaks
- zypper - gitleaks - 8.30.1-1.1: normalized package name match | openSUSE Tumbleweed package metadata: gitleaks from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst | Protect and discover secrets using Gitleaks | https://github.com/gitleaks/gitleaks
- zypper - gitleaks-bash-completion - 8.30.1-1.1: normalized package name match | openSUSE Tumbleweed package metadata: gitleaks-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst | Bash Completion for gitleaks | https://github.com/gitleaks/gitleaks
- zypper - gitleaks-fish-completion - 8.30.1-1.1: normalized package name match | openSUSE Tumbleweed package metadata: gitleaks-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst | Fish Completion for gitleaks | https://github.com/gitleaks/gitleaks
- zypper - gitleaks-zsh-completion - 8.30.1-1.1: normalized package name match | openSUSE Tumbleweed package metadata: gitleaks-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst | Zsh Completion for gitleaks | https://github.com/gitleaks/gitleaks
- MacPorts - gitleaks: normalized package name match | MacPorts ports tree: security/gitleaks/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - gitleaks: normalized package name match | Chocolatey community package catalog: gitleaks from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='7.2868','dispcalgui.portable'
- Scoop - main/gitleaks: normalized package name match | Scoop official bucket manifest trees: bucket/gitleaks.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Gitleaks.Gitleaks: normalized package name match | Windows Package Manager source index: Gitleaks.Gitleaks from https://cdn.winget.microsoft.com/cache/source.msix


## Related Links

- [Source-control packages](https://www.automicvault.com/fr/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/fr/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/fr/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://www.automicvault.com/fr/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [go](https://www.automicvault.com/fr/pkg/brew/go/) - Build dependency declared by Homebrew.
- [detect-secrets](https://www.automicvault.com/fr/pkg/brew/detect-secrets/) - Shares av.db curated category or tags: cli, devsecops, secret-scanning, security.
- [git-secrets](https://www.automicvault.com/fr/pkg/brew/git-secrets/) - Shares av.db curated category or tags: cli, git, secret-scanning, security.
- [tartufo](https://www.automicvault.com/fr/pkg/brew/tartufo/) - Shares av.db curated category or tags: cli, git, secret-scanning, security.
- [squealer](https://www.automicvault.com/fr/pkg/brew/squealer/) - Shares av.db curated category or tags: cli, git, secret-scanning, security.
- [git-hound](https://www.automicvault.com/fr/pkg/brew/git-hound/) - Shares av.db curated category or tags: cli, git, secret-scanning, security.
- [kingfisher](https://www.automicvault.com/fr/pkg/brew/kingfisher/) - Shares av.db curated category or tags: cli, secret-scanning, security.
- [mantra](https://www.automicvault.com/fr/pkg/brew/mantra/) - Shares av.db curated category or tags: cli, secret-scanning, security.
- [trufflehog](https://www.automicvault.com/fr/pkg/brew/trufflehog/) - Shares av.db curated category or tags: cli, git, security.

## Sources

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