# 使用 Homebrew, chocolatey, dnf, Nix, zypper, scoop, winget 安装 conan

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

## 安装

```sh
sudo av install brew:conan
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install conan
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install conan
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#conan
```

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

- zypper (92%):

```sh
sudo zypper install conan
```

  证据: openSUSE Tumbleweed package metadata: conan from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install conan
```

  证据: Chocolatey community package catalog: conan from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','cloudquery'

- Scoop (92%):

```sh
scoop install main/conan
```

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

- winget (92%):

```sh
winget install --id JFrog.Conan -e
```

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

## 软件包事实

- **软件包键:** brew:conan
- **软件包管理器:** Homebrew
- **版本:** 2.31.1
- **来源摘要:** Distributed, open source, package manager for C/C++
- **主页:** <https://conan.io>
- **仓库:** <https://github.com/conan-io/conan>
- **最后更新:** 2026-07-25T15:50:14Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- conan (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Conan is a decentralized, open-source package manager for C and C++ developers, designed to manage source recipes and binary packages across operating systems, compilers, architectures, build systems, and private or public remotes.

### 项目历史

The Conan repository was created in 2015 and reached a 1.0 release in January 2018. Its 2.0 release followed in February 2023, marking the current major generation of the client and documentation while Conan 1.x remained documented separately as a legacy line.

### 采用历史

Conan became important in C and C++ packaging because it addressed binary compatibility, cross-building, and private package hosting in ecosystems that historically relied on system package managers, vendored dependencies, or build-system-specific fetch logic. The official README highlights production use, integration with Artifactory, and a large community around GitHub, Slack, ConanCenter, and earlier Bintray-era repositories.

### 使用方式

Typical Conan workflows install dependencies from a conanfile, generate toolchain/build-system files, build or consume binary packages, and authenticate to remotes. Conan 2 stores user-level configuration under the Conan home, including global.conf, profiles, remotes.json, credentials.json, and source_credentials.json.

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

For package-manager watchers, Conan is one of the major language-adjacent package managers for native code: it is decentralized, recipe-driven, binary-aware, CI-friendly, and intentionally independent of any single compiler or build system.

### 时间线

- 2015: Official GitHub repository created.
- 2018: Conan 1.0.0 released.
- 2023: Conan 2.0.0 released.

### Related projects

- Conan is commonly discussed alongside CMake, Meson, MSBuild, vcpkg, Artifactory, and ConanCenter because those are the build, binary-hosting, and package-index surfaces that shape day-to-day use.

### 来源

- <https://github.com/conan-io/conan>
- <https://github.com/conan-io/conan/releases/tag/1.0.0>
- <https://github.com/conan-io/conan/releases/tag/2.0.0>
- <https://docs.conan.io/2/>
- <https://docs.conan.io/2/reference/config_files/global_conf.html>
- <https://docs.conan.io/2/reference/config_files/credentials.html>
- <https://docs.conan.io/2/reference/config_files/source_credentials.html>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## 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: ~/.conan2/global.conf, ~/.conan2/profiles/default, ~/.conan2/remotes.json

## Credential files

- Unix: ~/.conan2/credentials.json, ~/.conan2/source_credentials.json
## 其他软件包管理器记录

- Nix - conan: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/conan/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - conan - 2.31.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: conan from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Open-source C/C++ package manager | https://github.com/conan-io/conan
- zypper - conan - 2.29.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: conan from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A C/C++ package manager | https://github.com/conan-io/conan
- Chocolatey - conan: normalized package name match | Chocolatey community package catalog: conan from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','cloudquery'
- Scoop - main/conan: normalized package name match | Scoop official bucket manifest trees: bucket/conan.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - JFrog.Conan: normalized package name match | Windows Package Manager source index: JFrog.Conan from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

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