Add custom remote. In conan there is also conan-local and conan-remote repositories. You should choose simply conan. Otherwise you may get an error
ERROR: {
"errors" : [ {
"status" : 400,
"message" : "Unsupported Conan v2 repository request for 'conan_local'"
} ]
}
conan remote add my_conan https://remote False
False will remove ssl verification
Without revisions enabled new conan won’t work
export CONAN_REVISIONS_ENABLED=1
Then login
conan user -p <PASSWORD> -r my_conan <USERNAME>
Creating and uploading packages
conan create . demo/testing
conan upload --all logos/0.1@demo/testing -r my_conan
Without —all package with binaries won’t be uploaded, only recipe. So you may get an error, for example
ERROR: Missing prebuilt package for 'libzmq/4.2.0@memsharded/testing'
Installing packages from custom remote and build
conan install -r my_conan .. cmake .. cmake --build .
Other useful commands
Remove specified package from cache. Useful for checking install from remote
conan remove gtest/*
Remove custom remote
conan remote remove my_conan
List all remote
conan remote list
Search all packages in remote
conan search -r my_conan
Search packages with pattern
conan search gtest/* --revisions --remote my_conan
View conanfile info
conan info .