# 安装 vcpkg

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

## 安装

```sh
sudo av install brew:vcpkg
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install vcpkg
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install vcpkg
```

  证据: Fedora Rawhide package metadata: vcpkg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#vcpkg
```

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

- pacman (92%):

```sh
sudo pacman -S vcpkg
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/vcpkg
```

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

## 软件包事实

- **软件包键:** brew:vcpkg
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/vcpkg>
- **版本:** 2026-04-08
- **来源摘要:** C++ Library Manager
- **主页:** <https://github.com/microsoft/vcpkg>
- **仓库:** <https://github.com/microsoft/vcpkg>
- **许可证:** MIT
- **源码归档:** <https://github.com/microsoft/vcpkg-tool/archive/refs/tags/2026-04-08.tar.gz>
- **更新:** 2026-04-20T04:57:31Z
- **生成来源:** 2026-05-26T22:45:13+00:00

## 可执行文件

- vcpkg (cli)
- vcpkg (别名)

## 依赖

- fmt
- ninja

## 构建依赖

- cmake
- cmrc

## macOS 提供的库

- curl

## 安装行为

- post-install 钩子: 未定义
- Caveats: This formula provides only the `vcpkg` executable. To use vcpkg: git clone https://github.com/microsoft/vcpkg "$HOME/vcpkg" export VCPKG_ROOT="$HOME/vcpkg"
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 新鲜度

- 页面生成时间: 2026-05-26
- 管理器版本: 2026-04-08
- 管理器更新时间: 2026-04-20
- 本地数据: ok
- 上游仓库: https://github.com/microsoft/vcpkg-tool
- info: No cached GitHub release or tag data was available.

## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** green / low
- library-like package without higher-risk signals

## 相关链接

- [fmt](https://www.automicvault.com/pkg/brew/fmt/) - Runtime dependency declared by Homebrew.
- [ninja](https://www.automicvault.com/pkg/brew/ninja/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [cmrc](https://www.automicvault.com/pkg/brew/cmrc/) - Build dependency declared by Homebrew.

## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
