# 使用 Homebrew, apk, Nix 安装 dotenv-linter

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

## 安装

```sh
sudo av install brew:dotenv-linter
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dotenv-linter
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add dotenv-linter
```

  证据: Alpine Linux edge package indexes: dotenv-linter from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#dotenv-linter
```

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

## 软件包事实

- **软件包键:** brew:dotenv-linter
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dotenv-linter>
- **版本:** 4.0.0
- **来源摘要:** Lightning-fast linter for .env files written in Rust
- **主页:** <https://dotenv-linter.github.io>
- **仓库:** <https://github.com/dotenv-linter/dotenv-linter>
- **上游文档:** <https://dotenv-linter.github.io>
- **许可证:** MIT
- **源码归档:** <https://github.com/dotenv-linter/dotenv-linter/archive/refs/tags/v4.0.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- dotenv-linter (cli)
- dotenv-linter (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 4.0.0
- 本地数据: OK
- 上游仓库: https://github.com/dotenv-linter/dotenv-linter
- 检测到的最新版本: v4.0.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

dotenv-linter is a Rust command-line linter for dotenv-style .env files. It occupies a small but practical niche in developer tooling: catching duplicate keys, formatting mistakes, missing values, and other problems in configuration files before an application fails at runtime.

### 项目历史

The project reached a public 1.0.0 release on January 1, 2020, and its README presents the Rust rewrite as the fast successor to an earlier dotenv-linter implementation. The official documentation grew around checks, fix mode, diff mode, installation options, and CI integrations rather than a large application framework.

### 采用历史

Adoption has mostly followed the package-manager and CI-tooling route. The project documents GitHub Actions, CircleCI, Super-Linter, reviewdog, pre-commit hooks, and package-manager installation paths, which made it easy to add to existing repositories without changing application code.

### 使用方式

Developers use dotenv-linter locally or in CI to scan one or more .env files, automatically fix some warnings, or compare .env and .env.example files for missing keys. It is language-agnostic because dotenv files are used across many ecosystems.

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

For package maintainers, dotenv-linter is a compact example of the modern Rust CLI pattern: a single executable, fast startup, prebuilt install script, Homebrew/Nix/APK packaging, and direct CI integration. Its significance is not broad platform history but the way it packages a tiny quality gate as a reproducible CLI tool.

### 时间线

- 2020: v1.0.0 was published on GitHub releases.
- 2020: v2.x releases added to the project during the broader Rust CLI rewrite period.
- 2021: v3.0.0 was published, reflecting continued maintenance of the Rust implementation.

### Related projects

- dotenv
- reviewdog
- pre-commit
- GitHub Super-Linter

### 来源

- <https://github.com/dotenv-linter/dotenv-linter>
- <https://dotenv-linter.github.io/>
- <https://api.github.com/repos/dotenv-linter/dotenv-linter/releases?per_page=100>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dotenv-linter
- **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 - dotenv-linter: normalized package name match | nixpkgs package indexes: pkgs/by-name/do/dotenv-linter/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - dotenv-linter - 4.0.0-r0: normalized package name match | Alpine Linux edge package indexes: dotenv-linter from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Lightning-fast linter for .env files | https://dotenv-linter.github.io


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [ruff](https://pkg.so/zh-hans/brew/ruff/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, rust, static-analysis.
- [lychee](https://pkg.so/zh-hans/brew/lychee/) - Shares pkgdb curated category or tags: cli, developer-tools, quality-assurance, rust.
- [selene](https://pkg.so/zh-hans/brew/selene/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, rust, static-analysis.
- [cargo-spellcheck](https://pkg.so/zh-hans/brew/cargo-spellcheck/) - Shares pkgdb curated category or tags: cli, developer-tools, quality-assurance, rust.
- [droast](https://pkg.so/zh-hans/brew/droast/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, rust, static-analysis.
- [statix](https://pkg.so/zh-hans/brew/statix/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, rust, static-analysis.
- [swiftlint](https://pkg.so/zh-hans/brew/swiftlint/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, static-analysis.
- [eslint](https://pkg.so/zh-hans/brew/eslint/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, static-analysis.

## Combined YAML source

View the package source record on GitHub. [combined/dotenv-linter.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dotenv-linter.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
