Home > front end >  Conan packages migration from official repo to local private repo
Conan packages migration from official repo to local private repo

Time:09-28

I would like to know if it is possible to upload a package from official "conan-center" repo and all its dependencies into a local private repository (who does not have internet access)

Example:

In "conan-center" repo there is a package A. Package A has some dependencies: B and C.

I wanto to upload A (and automatically B and C) in a private artifactory repo using the "conan upload" command.

What is the best way to do this?

CodePudding user response:

The best to do it is using the Artifactory feature Remote Repository, where Artifactory will download it for you when a package is not available in your Local Remote.

However, if you don't have internet connection, it will be more complicated, you will need to download which packages do you need and upload them manually.

For instance, you can use conan download command and after that conan upload

For instance:

conan download openssl/1.1.1@ -r conancenter
conan user -p mypassword -r mylocalremote username
conan upload "*" -r mylocalremote --all --confirm --parallel 

In my opinion you should try to solve the connection limitation, because using Artifactory Remote Repository will save a lot of your time.

  • Related