remotes.json

The remotes.json file is located in the Conan user home directory, e.g., [CONAN_HOME]/remotes.json.

The default file created by Conan looks like this:

remotes.json

  1. {
  2. "remotes": [
  3. {
  4. "name": "conancenter",
  5. "url": "https://center2.conan.io",
  6. "verify_ssl": true
  7. }
  8. ]
  9. }

Note

Default Remote Update in Conan 2.9.2

Starting from Conan version 2.9.2, the default remote has been changed to https://center2.conan.io. The previous default remote https://center.conan.io is now frozen and will no longer receive updates. It is recommended to update your remote configuration to use the new default remote to ensure access to the latest recipes and package updates (for more information, please read this post).

If you still have the deprecated remote configured as the default, please update using the following command:

  1. conan remote update conancenter --url="https://center2.conan.io"

Essentially, it tells Conan where to list/upload/download the recipes/binaries from the remotes specified by their URLs.

The fields for each remote are:

  • name (Required, string value): Name of the remote. This name will be used in commands like conan list, e.g., conan list zlib/1.2.11 —remote my_remote_name.

  • url (Required, string value): indicates the URL to be used by Conan to search for the recipes/binaries.

  • verify_ssl (Required, bool value): Verify SSL certificate of the specified url.

  • disabled (Optional, bool value, false by default): If the remote is enabled or not to be used by commands like search, list, download and upload. Notice that a disabled remote can be used to authenticate against it even if it’s disabled.

See also