# sqruff を Homebrew, apk, Nix, scoop でインストール

sqruff のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:sqruff
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install sqruff
```

  証拠: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add sqruff
```

  証拠: Alpine Linux edge package indexes: sqruff from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#sqruff
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/sqruff
```

  証拠: Scoop official bucket manifest trees: bucket/sqruff.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:sqruff
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/sqruff>
- **バージョン:** 0.39.0
- **ソース概要:** Fast SQL formatter/linter
- **ホームページ:** <https://github.com/quarylabs/sqruff>
- **リポジトリ:** <https://github.com/quarylabs/sqruff>
- **ライセンス:** Apache-2.0
- **ソースアーカイブ:** <https://github.com/quarylabs/sqruff/archive/refs/tags/v0.39.0.tar.gz>
- **最終更新:** 2026-07-03T15:51:03Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- sqruff (cli)
- sqruff (エイリアス)

## ビルド依存関係

- rust

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.39.0
- マネージャ更新日: 2026-07-03
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/quarylabs/sqruff
- 検出された最新: v0.39.0 (最新)
## プロジェクトの歴史と使われ方

sqruff is a Rust-written SQL linter and formatter packaged as a fast, portable developer CLI.

### プロジェクトの歴史

The official sqruff README describes the project as a SQL linter and formatter written in Rust, with configurable linting, automated formatting, speed, and portability as core goals. Official repository metadata places public development in 2023.

The official README presents a package-manager-first quickstart for macOS with brew install sqruff, plus documentation for pip, cargo, and binary downloads. Release pages show continued fast iteration with tagged releases through the 0.3x series.

### 採用の歴史

The supplied package-manager facts show sqruff available through Homebrew, Alpine, Nix, and Scoop. That cross-platform packaging matches the README's portability pitch and makes the tool suitable for local editors, pre-commit hooks, and CI lint jobs.

### 使われ方

The README's basic workflow is to install sqruff, run sqruff lint with a SQL dialect such as postgres, and optionally create a .sqruff file in the project root so subsequent lint runs can infer configuration.

### パッケージ好きにとっての重要性

Package nerds care about sqruff because SQL formatting and linting often sit in awkward dependency territory between data teams, Python tools, Rust binaries, and editor integrations. sqruff's appeal is that the formatter/linter can be shipped as one fast CLI across package managers.

### タイムライン

- 2023: Official repository metadata reports public repository creation.
- 2024: GitHub issue history shows users configuring .sqruff in project roots for editor and SQL dialect workflows.
- 2026: Release page shows active 0.3x releases with downloadable assets.

### Related projects

- The official documentation connects sqruff to SQL dialect workflows, editor/CI usage, and Quary's hosted playground and docs.

### ソース

- <https://github.com/quarylabs/sqruff>
- <https://github.com/quarylabs/sqruff/releases>
- <https://playground.quary.dev/docs>
- source_facts.package-manager


## セキュリティノート

broad file, network, media, or database tool signal.

- **Geiger リスク:** blue / 中
- broad file, network, media, or database tool signal


## 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: .sqruff
## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** sqruff
- **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 - sqruff: normalized package name match | nixpkgs package indexes: pkgs/by-name/sq/sqruff/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - sqruff - 0.38.0-r0: normalized package name match | Alpine Linux edge package indexes: sqruff from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fast SQL formatter/linter | https://playground.quary.dev/
- apk - sqruff-doc - 0.38.0-r0: normalized package name match | Alpine Linux edge package indexes: sqruff-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fast SQL formatter/linter (documentation) | https://playground.quary.dev/
- Scoop - main/sqruff: normalized package name match | Scoop official bucket manifest trees: bucket/sqruff.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/ja/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [rust](https://pkg.so/ja/brew/rust/) - Build dependency declared by Homebrew.
- [rumdl](https://pkg.so/ja/brew/rumdl/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, linter, rust.
- [sqlfluff](https://pkg.so/ja/brew/sqlfluff/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, linter, sql.
- [sleek](https://pkg.so/ja/brew/sleek/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, rust, sql.
- [ruff](https://pkg.so/ja/brew/ruff/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, rust.
- [biome](https://pkg.so/ja/brew/biome/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, linter.
- [ktlint](https://pkg.so/ja/brew/ktlint/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, linter.
- [snowflake-cli](https://pkg.so/ja/brew/snowflake-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, snowflake, sql.
- [tombi](https://pkg.so/ja/brew/tombi/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, linter.
- [mado](https://pkg.so/ja/brew/mado/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, fast, linter.

## Combined YAML source

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


## ソース

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