# 使用 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
- **版本:** 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>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gitql (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
