# 使用 Homebrew, dnf, MacPorts, Nix, winget 安装 betterleaks

查看 betterleaks 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:betterleaks
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install betterleaks
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install betterleaks
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install betterleaks
```

  证据: Fedora Rawhide package metadata: betterleaks from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#betterleaks
```

  证据: nixpkgs package indexes: pkgs/by-name/be/betterleaks/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- winget (92%):

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

  证据: Windows Package Manager source index: Betterleaks.Betterleaks from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:betterleaks
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/betterleaks>
- **版本:** 1.6.1
- **来源摘要:** Secrets scanner built for configurability and speed
- **主页:** <https://betterleaks.com>
- **仓库:** <https://github.com/betterleaks/betterleaks>
- **上游文档:** <https://github.com/betterleaks/betterleaks#readme>
- **许可证:** MIT
- **源码归档:** <https://github.com/betterleaks/betterleaks/archive/refs/tags/v1.6.1.tar.gz>
- **最后更新:** 2026-06-30T18:02:33Z
- **已生成:** 2026-07-10T07:20:53+00:00

## 可执行文件

- betterleaks (cli)
- betterleaks (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-10
- 管理器版本: 1.6.1
- 管理器更新时间: 2026-06-30
- 本地数据: OK
- 上游仓库: https://github.com/betterleaks/betterleaks
- 检测到的最新版本: v1.6.1 (当前)
## 项目历史与用法

Betterleaks is a new secrets-scanning CLI focused on configurable detection, contextual filtering, secret validation, and scanning across Git, local directories, GitHub, GitLab, Hugging Face, S3, and stdin.

### 项目历史

The official repository was created in February 2026 and describes Betterleaks as maintained by the people behind Gitleaks, including Gitleaks' original author. Early 2026 releases moved quickly, reaching v1.6.0 by June 2026.

### 采用历史

Adoption history is still young, but the input already records Homebrew, Fedora, MacPorts, Nix, and winget packaging. The project also publishes container usage through GitHub Container Registry in its README installation examples.

### 使用方式

Betterleaks is used to scan repositories, local paths, hosted forges, object storage, and stdin for secrets. Its configuration model uses TOML rules with Expr-based filters and validation checks, and it keeps compatibility with Gitleaks-shaped configs.

### 为什么软件包爱好者会关心

Betterleaks matters to package nerds as a fast-moving 2026 entry in the secret-scanning ecosystem: it inherits expectations from Gitleaks but pushes more logic into configurable filters and validation. The interesting packaging angle is how quickly a security CLI can appear across Homebrew, Linux packages, containers, and Windows package feeds.

### 时间线

- 2026: Repository created in February.
- 2026: Early 1.x releases published through spring and summer.
- 2026: v1.6.0 released in June.

### Related projects

- Related projects include Gitleaks, TruffleHog, git-secrets, detect-secrets, and hosted secret-scanning features in GitHub and GitLab.

### 来源

- <https://api.github.com/repos/betterleaks/betterleaks>
- <https://api.github.com/repos/betterleaks/betterleaks/releases>
- <https://raw.githubusercontent.com/betterleaks/betterleaks/main/README.md>
- source_facts.package-manager


## 安全说明

没有找到 betterleaks 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 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: ./.betterleaks.toml, ./.gitleaks.toml
## 源数据库详情

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

## 其他软件包管理器记录

- Nix - betterleaks: normalized package name match | nixpkgs package indexes: pkgs/by-name/be/betterleaks/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - betterleaks - 1.4.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: betterleaks from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Secrets scanner built for configurability and speed | https://github.com/betterleaks/betterleaks
- MacPorts - betterleaks: normalized package name match | MacPorts ports tree: security/betterleaks/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- winget - Betterleaks.Betterleaks: normalized package name match | Windows Package Manager source index: Betterleaks.Betterleaks from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://www.automicvault.com/zh-hans/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [checkpwn](https://www.automicvault.com/zh-hans/pkg/brew/checkpwn/) - Shares av.db curated category or tags: cli, passwords, security.
- [detect-secrets](https://www.automicvault.com/zh-hans/pkg/brew/detect-secrets/) - Shares av.db curated category or tags: cli, secret-scanning, security.
- [diceware](https://www.automicvault.com/zh-hans/pkg/brew/diceware/) - Shares av.db curated category or tags: cli, passwords, security.
- [git-hound](https://www.automicvault.com/zh-hans/pkg/brew/git-hound/) - Shares av.db curated category or tags: cli, secret-scanning, security.
- [git-secrets](https://www.automicvault.com/zh-hans/pkg/brew/git-secrets/) - Shares av.db curated category or tags: cli, secret-scanning, security.
- [gitleaks](https://www.automicvault.com/zh-hans/pkg/brew/gitleaks/) - Shares av.db curated category or tags: cli, secret-scanning, security.
- [hack-browser-data](https://www.automicvault.com/zh-hans/pkg/brew/hack-browser-data/) - Shares av.db curated category or tags: cli, passwords, security.
- [kingfisher](https://www.automicvault.com/zh-hans/pkg/brew/kingfisher/) - Shares av.db curated category or tags: cli, secret-scanning, security.

## Combined YAML source

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


## 来源

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