1DNF.MODULARITY(7)                     DNF                    DNF.MODULARITY(7)
2
3
4

NAME

6       dnf.modularity - Modularity in DNF
7
8       Modularity  is new way of building, organizing and delivering packages.
9       For more details see: https://docs.pagure.org/modularity/
10

DEFINITIONS

12       modulemd
13              Every repository can contain modules metadata with modulemd doc‐
14              uments.   These  documents  hold  metadata about modules such as
15              Name, Stream or list of packages.
16
17       (non-modular) package
18              Package that doesn't belong to a module.
19
20       modular package
21              Package that belongs to a module. It is listed in modulemd under
22              the  artifacts section.  Modular packages can be also identified
23              by having %{modularitylabel} RPM header set.
24
25       (module) stream
26              Stream is a collection of packages, a virtual repository. It  is
27              identified  with  Name  and  Stream from modulemd separated with
28              colon, for example "postgresql:9.6".
29
30              Module streams can be active or inactive. active means  the  RPM
31              packages  from  this stream are included in the set of available
32              packages.  Packages from  inactive  streams  are  filtered  out.
33              Streams  are  active  either if marked as default or if they are
34              explicitly enabled by a user action. Streams that satisfy depen‐
35              dencies  of  default  or  enabled  streams  are  also considered
36              active.  Only one stream of a particular module can be active at
37              a given point in time.
38

PACKAGE FILTERING

40       Without modules, packages with the highest version are used by default.
41
42       Module  streams can distribute packages with lower versions than avail‐
43       able in the repositories available to the  operating  system.  To  make
44       such  packages  available  for  installs  and upgrades, the non-modular
45       packages are filtered out when their name or provide matches against  a
46       modular  package  name  from any enabled, default, or dependent stream.
47       Modular source packages will not cause non-modular binary  packages  to
48       be filtered out.
49

HOTFIX REPOSITORIES

51       In  special cases, a user wants to cherry-pick individual packages pro‐
52       vided outside module streams and make  them  available  on  along  with
53       packages  from  the  active  streams.  Under normal circumstances, such
54       packages are filtered out.  To make the  system  use  packages  from  a
55       repository regardless of their modularity, specify module_hotfixes=true
56       in the .repo file. This protects the repository from package filtering.
57
58       Please note the hotfix packages do not override module  packages,  they
59       only become part of available package set. It's the package Epoch, Ver‐
60       sion and Release what determines if the package is the latest.
61

FAIL-SAFE MECHANISMS

63   Repositories with module metadata are unavailable
64       When a repository with module metadata is unavailable, package  filter‐
65       ing  must  keep  working.  Non-modular RPMs must remain unavailable and
66       must never get on the system.
67
68       This happens when:
69
70       · user disables a repository via --disablerepo or uses --repoid
71
72       · user removes a .repo file from disk
73
74       · repository is not available and has skip_if_unavailable=true
75
76       DNF keeps copies of the latest modulemd for  every  active  stream  and
77       uses  them if there's no modulemd available for the stream.  This keeps
78       package filtering working correctly.
79
80       The copies are made any time a transaction  is  resolved  and  started.
81       That  includes  RPM transactions as well as any dnf module <enable|dis‐
82       able|reset> operations.
83
84       When the fail-safe data is used, dnf show such modules as part of @mod‐
85       ulefailsafe repository.
86
87   Orphaned modular packages
88       All  packages that are built as a part of a module have %{modularityla‐
89       bel} RPM header set.  If such package becomes part of  RPM  transaction
90       and cannot be associated with any available modulemd, DNF prevents from
91       getting  it  on  the  system  (package  is  available,  but  cannot  be
92       installed, upgraded, etc.)
93

AUTHOR

95       See AUTHORS in DNF source distribution.
96
98       2012-2021, Red Hat, Licensed under GPLv2+
99
100
101
102
1034.6.1                            Mar 02, 2021                DNF.MODULARITY(7)
Impressum