pkg.soopen package index

brew / 排名 3410

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

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install q

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install q

MacPorts ports tree · lang/q/Portfile · 来源: api.github.com

Linux

Nix已验证 · 92%
nix profile install nixpkgs#q

nixpkgs package indexes · pkgs/by-name/q/q/package.nix · 来源: api.github.com

Windows

Scoop已验证 · 92%
scoop install main/q

Scoop official bucket manifest trees · bucket/q.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id natesales.q -e

Windows Package Manager source index · natesales.q · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Tiny command-line DNS client with support for UDP, TCP, DoT, DoH, DoQ and ODoH

命令和别名

  • q

历史

项目历史与用法

q is a compact Go command-line DNS client supporting conventional DNS and multiple encrypted DNS transports.

项目历史

Nate Sales developed q as a small but feature-rich alternative to traditional DNS query clients. The program grew beyond UDP and TCP DNS to support DNS over TLS, HTTPS, QUIC, Oblivious HTTPS, and DNSCrypt.

The interface retains familiar DNS-client conventions, including `@server` selection and `+[no]flag` toggles, while adding JSON and YAML output, DNS Stamps, recursive AXFR, and IP registry enrichment.

采用历史

q is distributed through Homebrew, MacPorts, Nix, Scoop, WinGet, the Arch User Repository, GitHub releases, Go installation, containers, and maintainer-operated apt/yum repositories. This gives the single-binary client unusually broad availability across desktop and Unix-like package ecosystems.

使用方式

Users query default or explicit DNS record types, select a resolver with an `@server` argument, perform reverse lookups, request DNSSEC data, and choose pretty, raw, JSON, or YAML output.

q selects a server from an explicit argument, then `Q_DEFAULT_SERVER`, then `/etc/resolv.conf`. Its `+[no]flag` convention and raw output ease transitions from `dig`, while encrypted transports support modern resolver testing.

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

q belongs to a newer generation of DNS inspection tools that preserve familiar `dig`-style concepts while treating encrypted transports and machine-readable output as first-class features. Its compact Go distribution and wide package availability make it convenient for shell diagnostics and protocol testing.

时间线

  • Initial development: q was introduced as a small command-line DNS query utility.
  • Protocol expansion: Support grew to include DoT, DoH, DoQ, ODoH, DNSCrypt, and DNS Stamps.
  • Distribution expansion: q became available through multiple operating-system package managers, Go installation, GitHub binaries, and a container image.

Related projects

  • dig, kdig, drill, dog, and doggo are DNS clients compared directly in q's official README.
  • The miekg/dns Go module supplies core DNS functionality used by q.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:client

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
/etc/resolv.conf

可执行文件

已安装的可执行文件

命令类型暴露范围备注
qcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-09-19
管理器版本0.19.12
管理器更新时间2026-09-13
本地数据OK
上游当前
检测到的最新版本v0.19.12

https://github.com/natesales/q

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:q
版本0.19.12
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/q
主页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-09-13T19:55:37Z
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameq
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

q

nix profile install nixpkgs#q
  • normalized package name match
  • 匹配方式:Q
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/q/q/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

q

sudo port install q
  • normalized package name match
  • 匹配方式:Q
MacPorts ports tree · api.github.com · MacPorts ports tree: lang/q/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/q

scoop install main/q
  • normalized package name match
  • 匹配方式:Q
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/q.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

natesales.q

winget install --id natesales.q -e
  • normalized package name match
  • 匹配方式:Q
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: natesales.q from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

Combined YAML source

View the package source record on GitHub.

combined/q.yml

使用的来源

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