.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "DNF5-FILTERING" "7" "Apr 18, 2025" "" "dnf5" .SH NAME dnf5-filtering \- Packages Filtering .SH DESCRIPTION .sp 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. .sp There are several ways a package can be filtered out: .SH GLOBAL EXCLUDES FILTERING .sp 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: .sp \fBdnf5 \-\-setopt=disable_excludes=* install bash\fP .sp For details about the configuration options see \fBdnf5.conf(5)\fP, \fI\%DNF5 configuration reference\fP\&. .SH REPOSITORY EXCLUDES FILTERING .sp Similar to global excludes, but this configuration is repository\-specific and only affects packages within the repository where the excludes are set. .SH USER EXCLUDES FILTERING .sp 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\&. .SH VERSIONLOCK .sp Additionally, the versionlock functionality is implemented using excludes filtering. However, these excludes are applied only during transactional operations. For details see \fBdnf5\-versionlock(8)\fP, \fI\%Versionlock command\fP\&. .SH MODULAR FILTERING .sp For details on how modular filtering works please see \fBdnf5\-modularity(7)\fP, \fI\%the modularity documentation\fP\&. .sp 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. .sp 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 \fBmodule_hotfixes=true\fP in the \fB\&.repo\fP file or use \fB\-\-setopt=.module_hotfixes=true\fP\&. .SH AUTHOR See AUTHORS.md in dnf5 source distribution. .SH COPYRIGHT Contributors to the dnf5 project. .\" Generated by docutils manpage writer. .