Debian Codegraph @

docs/source/commands/merge-description.inc

raw
1 The ``merge`` command merges multiple SBOMs hierarchically. The most common use-case is combining
2 multiple parts of a Debian-based Linux distribution, like a rootfs and a initrd.
3
4 The merged SBOM contains the root components/packages of the input SBOMs at the first dependency
5 level. The following structure in two SBOMs
6
7 .. code-block::
8
9 doc1-root
10 |- binary-dep1
11 | |- source-dep1
12 |- binary-dep2
13
14 doc2-root
15 |- binary-dep3
16 | |- source-dep3
17 |- binary-dep4
18
19 would turn into this:
20
21 .. code-block::
22
23 merged-doc-root
24 |- doc1-root
25 | |- binary-dep1
26 | | |- source-dep1
27 | |- binary-dep2
28 |- doc2-root
29 | |- binary-dep3
30 | | |- source-dep3
31 | |- binary-dep4
32
33 Any duplicated components are identified solely by their PURL. If it is missing from a
34 component/package, it can not be matched and is treated as a completely unique. If a
35 component/package can be identified as identical, their contents are merged and their SBOM
36 reference IDs in the merged document are combined too. The ID will be replaced with the one
37 appearing first in the passed list of SBOMs. Any duplicate entries and dependencies are
38 also removed.