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

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

## 安装

```sh
sudo av install brew:q
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install q
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install q
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#q
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/q
```

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

- winget (92%):

```sh
winget install --id natesales.q -e
```

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

## 软件包事实

- **软件包键:** brew:q
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/q>
- **版本:** 0.19.12
- **来源摘要:** Tiny command-line DNS client with support for UDP, TCP, DoT, DoH, DoQ and ODoH
- **主页:** <https://github.com/natesales/q>
- **仓库:** <https://github.com/natesales/q>
- **许可证:** GPL-3.0-only
- **源码归档:** <https://github.com/natesales/q/archive/refs/tags/v0.19.12.tar.gz>
- **最后更新:** 2026-07-26T00:37:35+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- q (cli)
- q (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.19.12
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/natesales/q
- 检测到的最新版本: v0.19.12 (当前)

## 安全说明

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:** q
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Nix - q: normalized package name match | nixpkgs package indexes: pkgs/by-name/q/q/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - q: normalized package name match | MacPorts ports tree: lang/q/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/q: normalized package name match | Scoop official bucket manifest trees: bucket/q.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - natesales.q: normalized package name match | Windows Package Manager source index: natesales.q 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.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [nextdns](https://pkg.so/zh-hans/brew/nextdns/) - Shares pkgdb curated category or tags: cli, dns, doh, networking.
- [ldns](https://pkg.so/zh-hans/brew/ldns/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [bind](https://pkg.so/zh-hans/brew/bind/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [knot](https://pkg.so/zh-hans/brew/knot/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [pdns](https://pkg.so/zh-hans/brew/pdns/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [knot-resolver](https://pkg.so/zh-hans/brew/knot-resolver/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [ddclient](https://pkg.so/zh-hans/brew/ddclient/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [pdnsrec](https://pkg.so/zh-hans/brew/pdnsrec/) - Shares pkgdb curated category or tags: cli, dns, networking.
- [smartdns](https://pkg.so/zh-hans/brew/smartdns/) - Local package facts share a topical domain. Shared terms: cli, dns, doh, doq, dot.
- [dns-query](https://pkg.so/zh-hans/npm/dns-query/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, client, dns, doh, networking.
- [chinadns-c](https://pkg.so/zh-hans/brew/chinadns-c/) - Local package facts share a topical domain. Shared terms: cli, dns, networking.

## Combined YAML source

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


## 来源

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