# Install sqlfluff with Homebrew, apt, Nix, pacman

SQL linter and auto-formatter for Humans. Version 4.2.2 via Homebrew; verified 2026-06-05. Also installable with debian: sudo apt install sqlfluff.

## Install

```sh
sudo av install brew:sqlfluff
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install sqlfluff
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install sqlfluff
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#sqlfluff
```

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

- pacman (92%):

```sh
sudo pacman -S sqlfluff
```

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

## Package facts

- **Package key:** brew:sqlfluff
- **Package manager:** Homebrew
- **Version:** 4.2.2
- **Source summary:** SQL linter and auto-formatter for Humans
- **Homepage:** <https://docs.sqlfluff.com/>
- **Last updated:** 2026-06-05T19:11:50Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- sqlfluff (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 4.2.2
## Project history and usage

SQLFluff is a Python-based SQL linter and auto-formatter designed for dialect-flexible SQL, templated SQL, and analytics engineering workflows such as dbt and Jinja.

### Project history

The SQLFluff repository was created in 2018. Early GitHub releases in November 2018 describe the first functional release, usable linting, and alpha autocorrection; by late 2019 the project had alpha templating support.

The README describes the project as a dialect-flexible and configurable linter that can auto-fix many linting errors, supports many SQL dialects, and supports templating systems including Jinja and dbt.

### Adoption history

SQLFluff grew with analytics-engineering and ELT workflows where SQL style, templating, and CI linting matter. The input package metadata lists Homebrew, Debian, Ubuntu, Arch, and Nix packages, showing that it moved beyond pip into system package-manager culture.

### How it is used

Typical CLI usage is sqlfluff lint or sqlfluff fix against SQL files, with dialect and templater behavior configured through files such as .sqlfluff, setup.cfg, tox.ini, pep8.ini, or pyproject.toml.

### Why package nerds care

Package nerds care about SQLFluff because it made SQL linting feel like a normal developer-tooling dependency: install it from a package manager, pin it in CI, run it over generated or templated SQL, and keep database code review from becoming pure style debate.

### Timeline

- 2018: GitHub repository created.
- 2018: First functional release and usable linting releases published.
- 2019: First alpha release with templating support published.
- Current README: project documents many dialects, Jinja and dbt templating, CLI lint/fix usage, Docker image, and monthly releases.

### Related projects

- SQLFluff is closely associated with dbt and Jinja workflows, and its README also points to a VS Code extension and official Docker image.

### Sources

- <https://api.github.com/repos/sqlfluff/sqlfluff>
- <https://api.github.com/repos/sqlfluff/sqlfluff/releases>
- <https://docs.sqlfluff.com/en/stable/configuration/setting_configuration.html>
- <https://github.com/sqlfluff/sqlfluff#readme>
- input.source_facts.package-manager


## Security Notes

No matching local secret-handling manifest was found for sqlfluff. Nucleus package metadata is still published here so future coverage has a stable package 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: setup.cfg, tox.ini, pep8.ini, .sqlfluff, pyproject.toml
## Other Package-Manager Records

- Debian apt - sqlfluff - 3.3.1-1: normalized package name match | Debian stable package indexes: sqlfluff from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SQL linter tool | https://www.sqlfluff.com/
- Debian apt - sqlfluff-doc - 3.3.1-1: normalized package name match | Debian stable package indexes: sqlfluff-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SQL linter tool - documentation | https://www.sqlfluff.com/
- Nix - sqlfluff: normalized package name match | nixpkgs package indexes: pkgs/by-name/sq/sqlfluff/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - sqlfluff - 2.3.5-1: normalized package name match | Ubuntu 24.04 LTS package indexes: sqlfluff from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | SQL linter tool | https://www.sqlfluff.com/
- Ubuntu apt - sqlfluff-doc - 2.3.5-1: normalized package name match | Ubuntu 24.04 LTS package indexes: sqlfluff-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | SQL linter tool - documentation | https://www.sqlfluff.com/
- pacman - sqlfluff - 4.2.2-1: normalized package name match | Arch Linux sync databases: sqlfluff from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A dialect-flexible and configurable SQL linter | https://github.com/sqlfluff/sqlfluff


## Combined YAML source

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


## Sources

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
