.\" Man page generated from reStructuredText .\" by the Docutils 0.23 manpage writer. . . .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-REPO" "8" "Sep 06, 2026" "" "dnf5" .SH NAME dnf5-repo \- Repo Command .SH SYNOPSIS .sp \fBdnf5 repo [options] [...]\fP .SH DESCRIPTION .sp The \fBrepo\fP command in \fBDNF5\fP offers several queries for getting information about repositories configured on the system. .SH SUBCOMMANDS .INDENT 0.0 .TP .B \fBlist\fP .nf List available repositories. .fi .sp .TP .B \fBinfo\fP .nf Show detailed info about repositories. .fi .sp .UNINDENT .SH OPTIONS .INDENT 0.0 .TP .B \fB\-\-all\fP .nf Show information about all known repositories. .fi .sp .TP .B \fB\-\-enabled\fP .nf Show information only about enabled repositories. This is the default behavior. .fi .sp .TP .B \fB\-\-disabled\fP .nf Show information only about disabled repositories. .fi .sp .TP .B \fB\-\-json\fP .nf Show information in JSON format. Similar information can be obtained with \fBdnf5 \-\-dump\-repo\-config REPO_ID\fP command. .fi .sp .UNINDENT .SH EXAMPLES .INDENT 0.0 .TP .B \fBdnf5 repo info \-\-all\fP .nf Print detailed info about all known repositories. .fi .sp .TP .B \fBdnf5 repo list \-\-disabled *\-debuginfo\fP .nf Print disabled repositories related to debugging. .fi .sp .TP .B \fBdnf5 config\-manager setopt repo_id.enabled=0\fP .nf Persistently disable repository using the config\-manager plugin command. See \fBdnf5\-config\-manager(8)\fP for more details. .fi .sp .UNINDENT .SH JSON OUTPUT .INDENT 0.0 .IP \(bu 2 \fBdnf5 repo list \-\-json\fP .sp The command returns a JSON array of objects, each describing one repository. Each object contains the following fields: .INDENT 2.0 .IP \(bu 2 \fBid\fP (string) \- Repository ID. .IP \(bu 2 \fBname\fP (string) \- Repository name. .IP \(bu 2 \fBis_enabled\fP (boolean) \- Repository status, either \fBtrue\fP (enabled), or \fBfalse\fP (disabled). .UNINDENT .IP \(bu 2 \fBdnf5 repo info \-\-json\fP .sp The command returns a JSON array of objects, each describing one repository. Each object contains the following fields: .INDENT 2.0 .IP \(bu 2 \fBid\fP (string) \- Repository ID. .IP \(bu 2 \fBname\fP (string) \- Repository name. .IP \(bu 2 \fBis_enabled\fP (boolean) \- Repository status, either \fBtrue\fP (enabled), or \fBfalse\fP (disabled). .IP \(bu 2 \fBpriority\fP (integer) \- Repository priority. .IP \(bu 2 \fBcost\fP (integer) \- Repository cost. .IP \(bu 2 \fBtype\fP (string) \- Repository type. .IP \(bu 2 \fBexclude_pkgs\fP (array of strings) \- List of excluded packages. .IP \(bu 2 \fBinclude_pkgs\fP (array of strings) \- List of included packages. .IP \(bu 2 \fBtimestamp\fP (integer) \- Timestamp of the last metadata update, UNIX time. .IP \(bu 2 \fBmetadata_expire\fP (integer) \- Metadata expiration time. If not set, value is taken from global config. .IP \(bu 2 \fBskip_if_unavailable\fP (boolean) \- Whether to skip the repository if it is unavailable. .IP \(bu 2 \fBrepo_file_path\fP (string) \- Path to the repository file. .IP \(bu 2 \fBbase_url\fP (array of strings) \- List of base URLs. They are “effective” base URLs, i.e., after expanding any variables included. .IP \(bu 2 \fBmetalink\fP (string) \- Metalink URL. .IP \(bu 2 \fBmirrorlist\fP (string) \- Mirrorlist URL. .IP \(bu 2 \fBgpg_key\fP (array of strings) \- List of OpenPGP keys. .IP \(bu 2 \fBrepo_gpgcheck\fP (boolean) \- Whether to perform GPG check of the repository metadata. .IP \(bu 2 \fBpkg_gpgcheck\fP (boolean) \- Whether to perform GPG check of the packages. .IP \(bu 2 \fBavailable_pkgs\fP (integer) \- Number of available packages in the repository. .IP \(bu 2 \fBpkgs\fP (integer) \- Number of packages in the repository. .IP \(bu 2 \fBsize\fP (integer) \- Total size of packages in the repository, in bytes. .IP \(bu 2 \fBcontent_tags\fP (array of strings) \- List of content tags. .IP \(bu 2 \fBdistro_tags\fP (array of strings) \- List of distro tags. .IP \(bu 2 \fBrevision\fP (string) \- Repository revision. .IP \(bu 2 \fBmax_timestamp\fP (integer) \- Maximum timestamp from repomd records; UNIX time. .UNINDENT .UNINDENT .sp For more details about the fields, see the \fBREPO OPTIONS\fP section in dnf5.conf(5). .SH SEE ALSO .INDENT 0.0 .INDENT 3.5 .nf \fBdnf5(8)\fP, \-\-dump\-repo\-config option \%<#\:dump-repo-config-option-ref-label> \fBdnf5.conf(5)\fP, Repo Options \%<#\:repo-options-label> .fi .sp .UNINDENT .UNINDENT .SH Author See AUTHORS.md in dnf5 source distribution. .SH Copyright Contributors to the dnf5 project. .\" End of generated man page.