# 使用 Homebrew, apt, Nix, pacman 安装 sqlfluff

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install sqlfluff
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install sqlfluff
```

  证据: 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
```

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:sqlfluff
- **软件包管理器:** Homebrew
- **版本:** 4.2.2
- **来源摘要:** SQL linter and auto-formatter for Humans
- **主页:** <https://docs.sqlfluff.com/>
- **最后更新:** 2026-06-05T19:11:50Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- sqlfluff (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 4.2.2
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

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

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.

### 时间线

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

### 来源

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


## 安全说明

没有找到 sqlfluff 的匹配本地密钥处理 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: setup.cfg, tox.ini, pep8.ini, .sqlfluff, pyproject.toml
## 其他软件包管理器记录

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


## 来源

- 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
