# 使用 Homebrew, MacPorts, Nix, scoop, winget 安装 gql

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

## 安装

```sh
sudo av install brew:gql
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gql
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gql
```

  证据: MacPorts ports tree: devel/gql/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#gql
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/gitql
```

  证据: Scoop official bucket manifest trees: bucket/gitql.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id amrdeveloper.gitql -e
```

  证据: Windows Package Manager source index: amrdeveloper.gitql from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:gql
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gql>
- **版本:** 0.43.0
- **来源摘要:** Git Query language is a SQL like language to perform queries on .git files
- **主页:** <https://amrdeveloper.github.io/GQL/>
- **仓库:** <https://github.com/AmrDeveloper/GQL>
- **上游文档:** <https://amrdeveloper.github.io/GQL/>
- **许可证:** MIT
- **源码归档:** <https://github.com/AmrDeveloper/GQL/archive/refs/tags/0.43.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gitql (cli)
- gitql (别名)

## 构建依赖

- cmake
- rust

## 安装行为

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

## 版本和新鲜度

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

GitQL is a SQL-like query language and CLI for querying local `.git` data. The project also exposes the GitQL SDK, an in-memory query engine that can be adapted to other data sources.

### 项目历史

The repository history begins on 2023-06-02 with commits implementing the base structure and early SELECT, LIMIT, and OFFSET statements. The README describes GitQL as a tool built on the GitQL SDK for SQL-like queries over local Git repositories.

Over time the project expanded from a Git-history query CLI into a reusable SDK with customizable schema, data provider, standard library, type system, value system, and component assembly documentation.

### 采用历史

GitQL entered package-manager listings as a Rust-era developer tool for exploring repository metadata without exporting it to a database. The supplied metadata lists Homebrew, MacPorts, Nix, Scoop, and winget package names.

The official README also links related SDK-based tools, showing adoption of the query engine idea beyond Git data: LLQL, ClangQL, FileQL, and PyQL.

### 使用方式

Users run SQL-like statements against tables such as commits, branches, refs, tags, and diff changes. README examples include grouping commits by author, filtering refs, ordering branches, and aggregating file-change counts.

The SDK use case is broader: developers can define a schema and provider for a different source of data while reusing GitQL's parser, type system, functions, and query execution pieces.

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

GitQL sits in the same package-manager niche as `jq`, `sqlite-utils`, and other exploratory CLI tools: it gives maintainers and developers an ad hoc query surface over data they already have locally.

Its packaging across desktop package managers matters because Git repositories are local working-set data; installing a single CLI is simpler than standing up an indexed service just to ask a one-off history question.

### 时间线

- 2023-06-02: Repository history begins with the first GitQL commits.
- 2023: README license copyright names Amr Hesham.
- 2024-05-18: Project discussion for release 0.19.0 records parser, type-checker, and function work.
- 2025: README copyright range extends through 2025 and lists SDK-based related tools including PyQL.
- 2026-03-09: Repository history records version and dependency update work.

### Related projects

- LLQL applies the GitQL SDK idea to LLVM IR/BC.
- ClangQL applies SQL-like querying to C and C++ source code files.
- FileQL applies it to file-system metadata.
- PyQL applies it to Python source code files.

### 来源

- <https://amrdeveloper.github.io/GQL>
- <https://amrdeveloper.github.io/GQL/setup>
- <https://github.com/AmrDeveloper/GQL>
- <https://github.com/AmrDeveloper/GQL/discussions/100>


## 安全说明

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

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gql
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Conflicts With:** gitql
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - gql: normalized package name match | nixpkgs package indexes: pkgs/by-name/gq/gql/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - gql: normalized package name match | MacPorts ports tree: devel/gql/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/gitql: installed executable or alias match | Scoop official bucket manifest trees: bucket/gitql.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - amrdeveloper.gitql: installed executable or alias match | Windows Package Manager source index: amrdeveloper.gitql from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [gh](https://pkg.so/zh-hans/brew/gh/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [jq](https://pkg.so/zh-hans/brew/jq/) - Shares pkgdb curated category or tags: cli, developer-tools, query-language.
- [libgit2](https://pkg.so/zh-hans/brew/libgit2/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [glab](https://pkg.so/zh-hans/brew/glab/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [git-lfs](https://pkg.so/zh-hans/brew/git-lfs/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [lazygit](https://pkg.so/zh-hans/brew/lazygit/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [bat](https://pkg.so/zh-hans/brew/bat/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [git-filter-repo](https://pkg.so/zh-hans/brew/git-filter-repo/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [clangql](https://pkg.so/zh-hans/brew/clangql/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, files, gitql.
- [fileql](https://pkg.so/zh-hans/brew/fileql/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, files, gitql.
- [fselect](https://pkg.so/zh-hans/brew/fselect/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, files, like.

## Combined YAML source

View the package source record on GitHub. [combined/gql.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gql.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
