---
title: Install Gitleaks on Linux | Snap Store
description: Get the latest version of Gitleaks for Linux - Find secrets in Git repositories,
  files and standard input
url: https://snapcraft.io/gitleaks
---

# Gitleaks

[Sid-Ali Teir (sidaliteir)](https://snapcraft.io/publisher/sidaliteir "View all snaps from Sid-Ali Teir (sidaliteir)")

* [Sid-Ali Teir (sidaliteir)](https://snapcraft.io/publisher/sidaliteir "View all snaps from Sid-Ali Teir (sidaliteir)")
* [Development](https://snapcraft.io/search?categories=development)
* [Utilities](https://snapcraft.io/search?categories=utilities)

latest/stable 8.30.1

Install latest/stable of Gitleaks

---

**Install using the command line**

```
sudo snap install gitleaks
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* gitleaks

---

### License

* MIT

---

### Last updated

* 12 November 2026 - latest/stable
* 13 November 2026 - latest/beta

---

### Websites

* [gitleaks.io](https://gitleaks.io "https://gitleaks.io")

---

### Contact

* [github.com/sidalit/gitleaks-snap/issues](https://github.com/sidalit/gitleaks-snap/issues "https://github.com/sidalit/gitleaks-snap/issues")

---

### Source code

* [github.com/gitleaks/gitleaks](https://github.com/gitleaks/gitleaks "https://github.com/gitleaks/gitleaks")
* [github.com/sidalit/gitleaks-snap](https://github.com/sidalit/gitleaks-snap "https://github.com/sidalit/gitleaks-snap")

---

### Report a bug

* [github.com/gitleaks/gitleaks/issues](https://github.com/gitleaks/gitleaks/issues "https://github.com/gitleaks/gitleaks/issues")
* [github.com/sidalit/gitleaks-snap/issues](https://github.com/sidalit/gitleaks-snap/issues "https://github.com/sidalit/gitleaks-snap/issues")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/gitleaks#report-snap-modal)

---

* [Description](https://snapcraft.io/gitleaks#tab-description)
* [Security](https://snapcraft.io/gitleaks#tab-security)

#### Find secrets in Git repositories, files and standard input

Gitleaks detects passwords, API keys, tokens and other secrets in the
history of Git repositories, in directories and files, and in text read
from standard input. It prints findings or writes them as JSON, CSV,
JUnit, SARIF or a custom template, and its rules can be extended with a
TOML file.

**Examples**

```
gitleaks git -v ~/projects/my-project
gitleaks dir -v ~/projects/my-project
cat notes.txt | gitleaks stdin
gitleaks git --pre-commit --staged --redact -v
```

**File access**

Gitleaks can scan repositories and files in your home directory. To
also scan USB drives and other removable media (/media, /mnt), run:

```
sudo snap connect gitleaks:removable-media
```

The snap includes Git and has no network access.

---

## Install Gitleaks on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the [installing snapd documentation](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/gitleaks/arch)

[### CentOS](https://snapcraft.io/install/gitleaks/centos)

[### Debian](https://snapcraft.io/install/gitleaks/debian)

[### elementary OS](https://snapcraft.io/install/gitleaks/elementary)

[### Fedora](https://snapcraft.io/install/gitleaks/fedora)

[### KDE Neon](https://snapcraft.io/install/gitleaks/kde-neon)

[### Kubuntu](https://snapcraft.io/install/gitleaks/kubuntu)

[### Manjaro](https://snapcraft.io/install/gitleaks/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/gitleaks/pop)

[### openSUSE](https://snapcraft.io/install/gitleaks/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/gitleaks/rhel)

[### Ubuntu](https://snapcraft.io/install/gitleaks/ubuntu)

[### Raspberry Pi](https://snapcraft.io/install/gitleaks/raspbian)
