Article by:
Date Published:
Last Modified:


Conan is a package manager, primarily designed for C or C++ packages.


Linux, macOS, Windows

Assuming you have python and pip already installed on your system, you can install Conan with the command:

$ pip install conan

Local Cache

Conan downloads package recipes and binaries to local cache, so if they are used multiple times, you don’t have to download them. Typically, the local cache is found at ~/.conan/data.

You can inspect your local cache with:

$ conan search

You can remove packages from your local cache with:

$ conan remove


Conan will install packages to it’s cache located at <user home directory>/.conan.

Packages uploaded to the central repository must have a test_package sub-directory.


The conan file inside test_package does not have to have a requires dependency for the package it is testing, this is automatically assumed.

You should not be writing your unit or integration tests inside test_package. It is solely designed to test that the package was created properly. For a simple C++ static library, it would be enough to include the headers (this checks to make sure the headers were exported into the package correctly) and create an instance of a class provided by the library (this makes sure the static library was included in the package and it is being linked against).


Geoffrey Hunter

Dude making stuff.

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License .

Related Content

No related content found.


    comments powered by Disqus