# Install dotenv-linter with Homebrew, apk, Nix

Lightning-fast linter for .env files written in Rust. Version 4.0.0 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

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

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:dotenv-linter
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/dotenv-linter>
- **Version:** 4.0.0
- **Source summary:** Lightning-fast linter for .env files written in Rust
- **Homepage:** <https://dotenv-linter.github.io>
- **Repository:** <https://github.com/dotenv-linter/dotenv-linter>
- **Upstream docs:** <https://dotenv-linter.github.io/>
- **License:** MIT
- **Source archive:** <https://github.com/dotenv-linter/dotenv-linter/archive/refs/tags/v4.0.0.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- dotenv-linter (cli)
- dotenv-linter (alias)

## Build dependencies

- rust

## 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-07-08
- Package-manager version: 4.0.0
- Local data: ok
- Upstream repository: https://github.com/dotenv-linter/dotenv-linter
- Upstream latest detected: v4.0.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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 history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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

### Sources

- <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>


## Security Notes

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:** 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

## Other Package-Manager Records

- 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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [lychee](https://www.automicvault.com/pkg/brew/lychee/) - Shares av.db curated category or tags: cli, developer-tools, quality-assurance, rust.
- [ruff](https://www.automicvault.com/pkg/brew/ruff/) - Shares av.db curated category or tags: cli, developer-tools, linter, rust, static-analysis.
- [selene](https://www.automicvault.com/pkg/brew/selene/) - Shares av.db curated category or tags: cli, developer-tools, linter, rust, static-analysis.
- [statix](https://www.automicvault.com/pkg/brew/statix/) - Shares av.db curated category or tags: cli, developer-tools, linter, rust, static-analysis.
- [action-validator](https://www.automicvault.com/pkg/brew/action-validator/) - Shares av.db curated category or tags: cli, developer-tools, linter, rust.
- [dscanner](https://www.automicvault.com/pkg/brew/dscanner/) - Shares av.db curated category or tags: cli, developer-tools, linter, static-analysis.
- [elvis](https://www.automicvault.com/pkg/brew/elvis/) - Shares av.db curated category or tags: cli, developer-tools, linter, static-analysis.
- [errcheck](https://www.automicvault.com/pkg/brew/errcheck/) - Shares av.db 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/automic-vault/db/blob/main/combined/dotenv-linter.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- 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
