# 使用 Homebrew, Nix, pacman, winget 安装 qwen-code

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

## 安装

```sh
sudo av install brew:qwen-code
```

## 代理安全回答

qwen-code is an AI coding tool with local file and command access potential.

- **凭据访问:** May access model credentials, repository files, environment variables, and local tool config.
- **远程变更:** Can drive commands that mutate Git, packages, or cloud state.
- **发布/制品风险:** Can generate code and invoke release workflows.
- **推荐控制:** Run in containment and gate sensitive host tool calls.
- **代理使用指南:** Limit workspace scope; require approval for secrets, publishing, and remote writes.

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install qwen-code
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#qwen-code
```

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

- pacman (92%):

```sh
sudo pacman -S qwen-code
```

  证据: Arch Linux sync databases: qwen-code from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- winget (92%):

```sh
winget install --id Alibaba.Qwen -e
```

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

## 软件包事实

- **软件包键:** brew:qwen-code
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/qwen-code>
- **版本:** 0.21.4
- **来源摘要:** AI-powered command-line workflow tool for developers
- **主页:** <https://github.com/QwenLM/qwen-code>
- **仓库:** <https://github.com/QwenLM/qwen-code>
- **许可证:** Apache-2.0
- **源码归档:** <https://registry.npmjs.org/@qwen-code/qwen-code/-/qwen-code-0.21.3.tgz>
- **最后更新:** 2026-08-04T06:59:58Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- qwen (cli)
- qwen (别名)

## 依赖

- node
- ripgrep

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.21.4
- 管理器更新时间: 2026-08-04
- 本地数据: OK
- 上游仓库: https://github.com/QwenLM/qwen-code
- 信息: No cached GitHub release or tag data was available.

## 安全说明

没有找到 qwen-code 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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: ~/.qwen/settings.json

## Credential files

- Unix: ~/.qwen/settings.json
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** qwen-code
- **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 - qwen-code: normalized package name match | nixpkgs package indexes: pkgs/by-name/qw/qwen-code/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - qwen-code - 0.19.3-1: normalized package name match | Arch Linux sync databases: qwen-code from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Open-source AI agent for the terminal, optimized for Qwen-Coder | https://github.com/QwenLM/qwen-code
- winget - Alibaba.Qwen: installed executable or alias match | Windows Package Manager source index: Alibaba.Qwen 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.
- [MCP tool packages](https://pkg.so/zh-hans/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [AI and agent packages](https://pkg.so/zh-hans/ai-agent-tools/) - Matched AI model, agent, coding-agent, orchestration, or MCP metadata.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [node](https://pkg.so/zh-hans/brew/node/) - Runtime dependency declared by Homebrew.
- [ripgrep](https://pkg.so/zh-hans/brew/ripgrep/) - Runtime dependency declared by Homebrew.
- [zot](https://pkg.so/zh-hans/brew/zot/) - Shares pkgdb curated category or tags: ai, cli, coding-agent, coding-agents, llm.
- [opencode](https://pkg.so/zh-hans/brew/opencode/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, llm.
- [rtk](https://pkg.so/zh-hans/brew/rtk/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, llm.
- [worktrunk](https://pkg.so/zh-hans/brew/worktrunk/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, developer-workflow.
- [beads](https://pkg.so/zh-hans/brew/beads/) - Shares pkgdb curated category or tags: ai, cli, coding-agent, coding-agents.
- [specify](https://pkg.so/zh-hans/brew/specify/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, developer-workflow.
- [repomix](https://pkg.so/zh-hans/brew/repomix/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, llm.
- [mistral-vibe](https://pkg.so/zh-hans/brew/mistral-vibe/) - Shares pkgdb curated category or tags: ai, cli, coding-agent, coding-agents.
- [claude-cmd](https://pkg.so/zh-hans/brew/claude-cmd/) - Both packages touch the same language runtime or ecosystem. Shared terms: agents, ai, cli, code, coding.
- [mimo-code](https://pkg.so/zh-hans/brew/mimo-code/) - Both packages touch the same language runtime or ecosystem. Shared terms: agent, agents, ai, cli, code.
- [openskills](https://pkg.so/zh-hans/brew/openskills/) - Both packages touch the same language runtime or ecosystem. Shared terms: agents, ai, cli, coding, coding-agents.

## Combined YAML source

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


## 来源

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