Skip to content

Commit 282773c

Browse files
authored
Merge pull request #64 from RedHatProductSecurity/add-src-binary-rpm-purl-note
Add examples of how to distinguish SRPM and binary RPM packages
2 parents 3868737 + ff2a000 commit 282773c

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

docs/purl.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,15 @@ version, and repository name but were provided by a different vendor.
5050
If a purl identifies a Source RPM (SRPM, a package containing source code files that are used to build one or more
5151
RPMs containing binary artifacts), the `arch` qualifier must use the special value `src`. In the NEVRA file name
5252
pattern, SRPM packages use a `.src.rpm` suffix. Packages that are not architecture-specific must use the special
53-
`noarch` value in the arch qualifier.
53+
`noarch` value in the arch qualifier. Binary RPM packages will include a specific architecture as shown in the
54+
example above, or will omit the `arch` qualifier entirely to signify that the identifier applies to all available
55+
architectures.
56+
57+
```
58+
pkg:rpm/redhat/emacs@27.2-9.el9?arch=x86_64 # Binary RPM package for the x86_64 architecture
59+
pkg:rpm/redhat/emacs?arch=src # SRPM package that identifies all available versions of the emacs package
60+
pkg:rpm/redhat/emacs # Binary RPM package that identifies all available versions and architectures
61+
```
5462

5563
An RPM package may also include an epoch number; if not present, it is assumed to be `0`. In a purl, epoch is
5664
not part of the version field, but instead is specified using the `epoch` qualifier (e.g. `epoch=1`).

0 commit comments

Comments
 (0)