{
  "$schema": "https://packageurl.org/schemas/purl-type-definition.schema-1.0.json",
  "$id": "https://packageurl.org/types/deb-definition.json",
  "type": "deb",
  "type_name": "Debian package",
  "description": "Debian packages, Debian derivatives, and Ubuntu packages",
  "repository": {
    "use_repository": true,
    "note": "There is no default package repository, this should be implied either from the distro qualifiers key or using a base url as a repository_url qualifiers key."
  },
  "namespace_definition": {
    "native_name": "vendor",
    "case_sensitive": false,
    "note": "The namespace is the \"vendor\" name such as \"debian\" or \"ubuntu\". It is not case sensitive and must be lowercased.",
    "requirement": "required"
  },
  "name_definition": {
    "requirement": "required",
    "native_name": "name",
    "case_sensitive": false,
    "note": "The name is not case sensitive and must be lowercased."
  },
  "version_definition": {
    "requirement": "optional",
    "native_name": "version",
    "note": "The version is the version of the binary (or source) package."
  },
  "qualifiers_definition": [
    {
      "key": "arch",
      "description": "arch is the qualifiers key for a package architecture. The special value arch=source identifies a Debian source package that usually consists of a Debian Source control file (.dsc) and corresponding upstream and Debian sources. The dpkg-query command can print the name and version of the corresponding source package of a binary package, e.g. dpkg-query -f ${source:Package} ${source:Version} -W <binary package name>"
    }
  ],
  "examples": [
    "pkg:deb/debian/curl@7.50.3-1?arch=i386&distro=jessie",
    "pkg:deb/debian/dpkg@1.19.0.4?arch=amd64&distro=stretch",
    "pkg:deb/ubuntu/dpkg@1.19.0.4?arch=amd64",
    "pkg:deb/debian/attr@1:2.4.47-2?arch=source",
    "pkg:deb/debian/attr@1:2.4.47-2%2Bb1?arch=amd64"
  ]
}
