Debian Codegraph @

upstream/mageia-cauldron/man7/dnf5-filtering.7

raw
1 .\" Man page generated from reStructuredText.
2 .
3 .
4 .nr rst2man-indent-level 0
5 .
6 .de1 rstReportMargin
7 \\$1 \\n[an-margin]
8 level \\n[rst2man-indent-level]
9 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
10 -
11 \\n[rst2man-indent0]
12 \\n[rst2man-indent1]
13 \\n[rst2man-indent2]
14 ..
15 .de1 INDENT
16 .\" .rstReportMargin pre:
17 . RS \\$1
18 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
19 . nr rst2man-indent-level +1
20 .\" .rstReportMargin post:
21 ..
22 .de UNINDENT
23 . RE
24 .\" indent \\n[an-margin]
25 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
26 .nr rst2man-indent-level -1
27 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
28 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
29 ..
30 .TH "DNF5-FILTERING" "7" "May 10, 2026" "" "dnf5"
31 .SH NAME
32 dnf5-filtering \- Packages Filtering
33 .SH DESCRIPTION
34 .sp
35 Package filtering removes packages from the available package set, making them invisible to most \fBDNF5\fP commands. As a result, these packages cannot be included in any transaction.
36 .sp
37 There are several ways a package can be filtered out:
38 .SH GLOBAL EXCLUDES FILTERING
39 .sp
40 Exclude filtering can be adjusted using the \fBincludepkgs\fP or \fBexcludepkgs\fP configuration options in the DNF5 configuration file. To disable excludes, you can use the \fBdisable_excludes\fP configuration option:
41 .sp
42 \fBdnf5 \-\-setopt=disable_excludes=* install bash\fP
43 .sp
44 For details about the configuration options see \fBdnf5.conf(5)\fP, \fI\%DNF5 configuration reference\fP\&.
45 .SH REPOSITORY EXCLUDES FILTERING
46 .sp
47 Similar to global excludes, but this configuration is repository\-specific and only affects packages within the repository where the excludes are set.
48 .SH USER EXCLUDES FILTERING
49 .sp
50 API users have an additional option how to fine\-tune excluded packages using \fB*_user_excludes()\fP and \fB*_user_includes\fP methods of the \fBPackageSack\fP object. See PackageSack API\&.
51 .SH VERSIONLOCK
52 .sp
53 Additionally, the versionlock functionality is implemented using excludes filtering. However, these excludes are applied only during transactional operations.
54 For details see \fBdnf5\-versionlock(8)\fP, \fI\%Versionlock command\fP\&.
55 .SH MODULAR FILTERING
56 .sp
57 For details on how modular filtering works please see \fBdnf5\-modularity(7)\fP, \fI\%the modularity documentation\fP\&.
58 .sp
59 With modularity, only RPM packages from \fBactive\fP module streams are included in the available package set. RPM packages from \fBinactive\fP module streams, as well as non\-modular packages with the same name or provides as a package from an \fBactive\fP module stream, are filtered out. Modular filtering is not applied to packages added from the command line, installed packages, or packages from repositories with \fBmodule_hotfixes=true\fP in their \fB\&.repo\fP file.
60 .sp
61 Disabling of modular filtering is not recommended, because it could cause the system to get into a broken state. To disable modular filtering for a particular repository, specify
62 \fBmodule_hotfixes=true\fP in the \fB\&.repo\fP file or use \fB\-\-setopt=<repo_id>.module_hotfixes=true\fP\&.
63 .SH AUTHOR
64 See AUTHORS.md in dnf5 source distribution.
65 .SH COPYRIGHT
66 Contributors to the dnf5 project.
67 .\" Generated by docutils manpage writer.
68 .