table of contents
| DNF5-REPOCLOSURE(8) | dnf5 | DNF5-REPOCLOSURE(8) |
NAME¶
dnf5-repoclosure - Repoclosure Command
SYNOPSIS¶
dnf5 repoclosure [options] [<pkg-spec>...]
DESCRIPTION¶
The repoclosure command allows you to analyze package metadata from multiple repositories. It checks all dependencies of the packages and provides a list of packages that have unresolved dependencies.
By default, repoclosure considers all enabled repositories when checking dependencies. However, you can customize the set of repositories by using standard DNF5 options such as --repo, --enable-repo, or --disable-repo.
OPTIONS¶
- --arch <arch>
-
Query only packages for specified architecture, can be specified multiple times (default is all compatible architectures with your system).
- --best
-
Check only the newest packages per arch.
- --check=REPO_ID,...
-
Specify repositories to check, can be specified multiple times (default is all enabled repositories). Accepted values are repository ids, or a glob of ids.
- --json
-
Request JSON output format for machine-readable results.
- --newest
-
Check only the newest packages in the repos.
- <pkg-spec>
-
Check closure for this package only.
EXAMPLES¶
- dnf5 repoclosure
-
Display a list of unresolved dependencies for all enabled repositories.
- dnf5 repoclosure --repo rawhide --arch noarch --arch x86_64
-
Display a list of unresolved dependencies for rawhide repository and packages with architecture noarch and x86_64.
- dnf5 repoclosure --repo rawhide zmap
-
Display a list of unresolved dependencies for zmap package from rawhide repository.
- dnf5 repoclosure --repo rawhide --check myrepo
-
Display a list of unresolved dependencies for myrepo, an add-on for the rawhide repository.
- dnf5 repoclosure --json
-
List all unresolved dependencies in JSON format for machine-readable results.
JSON OUTPUT¶
- •
- dnf5 repoclosure --json
The command returns a JSON array, each element describing one package with unresolved dependencies. Each package object contains the following fields:
- package (string) - Package NEVRA.
- repo (string) - Repository identifier.
- unresolved_dependencies (array) - List of unsatisfied requirements (strings).
For empty results, dnf5 repoclosure --json will return [] (empty array).
If unresolved dependencies are found, the command exits with code 1. If any package specifications fail to resolve, error messages are printed to stderr and the command exits with code 1.
Author¶
See AUTHORS.md in dnf5 source distribution.
Copyright¶
Contributors to the dnf5 project.
| April 23, 2026 |