Skip to main content

PURL Type Definition: conan

PURL Syntax

The structure of a PURL for this package type is:

pkg:conan/<namespace>/<name>@<version>?<qualifiers>#<subpath>

Repository Information

Namespace definition

  • Requirement: Optional
  • Native Label: vendor
  • Note: The vendor of the package.

Name definition

  • Requirement: Required
  • Native Label: package-name
  • Note: The Conan <package-name>.

Version definition

  • Requirement: Optional
  • Native Label: package-version
  • Note: The Conan <package-version>.

Qualifiers Definition

KeyRequirementNative nameDefault ValueDescription
userOptionaluserThe Conan . Only required if the Conan package was published with .
channelOptionalchannelThe Conan . Only required if the Conan package was published with Conan .
rrevOptionalrecipe revisionThe Conan recipe revision (optional). If omitted, the purl refers to the latest recipe revision available for the given version.
prevOptionalpackage revisionThe Conan package revision (optional). If omitted, the purl refers to the latest package revision available for the given version and recipe revision.

Examples

  • pkg:conan/openssl@3.0.3
  • pkg:conan/openssl.org/openssl@3.0.3?channel=stable&user=bincrafters
  • pkg:conan/openssl.org/openssl@3.0.3?arch=x86_64&build_type=Debug&compiler=Visual%20Studio&compiler.runtime=MDd&compiler.version=16&os=Windows&prev=b429db8a0e324114c25ec387bfd8281f330d7c5c&rrev=93a82349c31917d2d674d22065c7a9ef9f380c8e&shared=True

Note

Additional qualifiers can be used to distinguish Conan packages with different settings or options, e.g. os=Linux, build_type=Debug or shared=True. If no additional qualifiers are used to distinguish Conan packages build with different settings or options, then the purl is ambiguous and it is up to the user to work out which package is being referred to (e.g. with context information).