# 环境
ubuntu:bionic的docker image
```shell
docker run -it ubuntu:bionic
```
预装工具
```shell
apt-get install cmake
```
# 安装conan
```shell
# pip3 install conan
Collecting conan
# conan -v
Conan version 1.33.0
```
# 使用conan
>官方文档:https://docs.conan.io/en/latest/getting_started.html
## 搜索包
```shell
# conan search poco --remote=conan-center
WARN: Remotes registry file missing, creating default one in /root/.conan/remotes.json
Existing package recipes:
poco/1.8.1 <<< 已有的版本
poco/1.9.3
poco/1.9.4
poco/1.10.0
poco/1.10.1
```
## 导入包
```shell
# conan inspect poco/1.9.4
poco/1.9.4: Not found in local cache, looking in remotes...
poco/1.9.4: Trying with 'conan-c