Debian Codegraph @

upstream/debian-unstable/man8/dnf5-repo.8

raw
1 .\" Man page generated from reStructuredText
2 .\" by the Docutils 0.22.4 manpage writer.
3 .
4 .
5 .nr rst2man-indent-level 0
6 .
7 .de1 rstReportMargin
8 \\$1 \\n[an-margin]
9 level \\n[rst2man-indent-level]
10 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
11 -
12 \\n[rst2man-indent0]
13 \\n[rst2man-indent1]
14 \\n[rst2man-indent2]
15 ..
16 .de1 INDENT
17 .\" .rstReportMargin pre:
18 . RS \\$1
19 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20 . nr rst2man-indent-level +1
21 .\" .rstReportMargin post:
22 ..
23 .de UNINDENT
24 . RE
25 .\" indent \\n[an-margin]
26 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27 .nr rst2man-indent-level -1
28 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30 ..
31 .TH "DNF5-REPO" "8" "May 09, 2026" "" "dnf5"
32 .SH NAME
33 dnf5-repo \- Repo Command
34 .SH SYNOPSIS
35 .sp
36 \fBdnf5 repo <subcommand> [options] [<repo\-spec>...]\fP
37 .SH DESCRIPTION
38 .sp
39 The \fBrepo\fP command in \fBDNF5\fP offers several queries for getting information
40 about repositories configured on the system.
41 .SH SUBCOMMANDS
42 .INDENT 0.0
43 .TP
44 .B \fBlist\fP
45 .nf
46 List available repositories.
47 .fi
48 .sp
49 .TP
50 .B \fBinfo\fP
51 .nf
52 Show detailed info about repositories.
53 .fi
54 .sp
55 .UNINDENT
56 .SH OPTIONS
57 .INDENT 0.0
58 .TP
59 .B \fB\-\-all\fP
60 .nf
61 Show information about all known repositories.
62 .fi
63 .sp
64 .TP
65 .B \fB\-\-enabled\fP
66 .nf
67 Show information only about enabled repositories.
68 This is the default behavior.
69 .fi
70 .sp
71 .TP
72 .B \fB\-\-disabled\fP
73 .nf
74 Show information only about disabled repositories.
75 .fi
76 .sp
77 .TP
78 .B \fB\-\-json\fP
79 .nf
80 Show information in JSON format.
81 Similar information can be obtained with \fBdnf5 \-\-dump\-repo\-config REPO_ID\fP command.
82 .fi
83 .sp
84 .UNINDENT
85 .SH EXAMPLES
86 .INDENT 0.0
87 .TP
88 .B \fBdnf5 repo info \-\-all\fP
89 .nf
90 Print detailed info about all known repositories.
91 .fi
92 .sp
93 .TP
94 .B \fBdnf5 repo list \-\-disabled *\-debuginfo\fP
95 .nf
96 Print disabled repositories related to debugging.
97 .fi
98 .sp
99 .TP
100 .B \fBdnf5 config\-manager setopt repo_id.enabled=0\fP
101 .nf
102 Persistently disable repository using the config\-manager plugin command.
103 See \fBdnf5\-config\-manager(8)\fP for more details.
104 .fi
105 .sp
106 .UNINDENT
107 .SH JSON OUTPUT
108 .INDENT 0.0
109 .IP \(bu 2
110 \fBdnf5 repo list \-\-json\fP
111 .sp
112 The command returns a JSON array of objects, each describing one repository.
113 Each object contains the following fields:
114 .INDENT 2.0
115 .IP \(bu 2
116 \fBid\fP (string) \- Repository ID.
117 .IP \(bu 2
118 \fBname\fP (string) \- Repository name.
119 .IP \(bu 2
120 \fBis_enabled\fP (boolean) \- Repository status, either \fBtrue\fP (enabled),
121 or \fBfalse\fP (disabled).
122 .UNINDENT
123 .IP \(bu 2
124 \fBdnf5 repo info \-\-json\fP
125 .sp
126 The command returns a JSON array of objects, each describing one repository.
127 Each object contains the following fields:
128 .INDENT 2.0
129 .IP \(bu 2
130 \fBid\fP (string) \- Repository ID.
131 .IP \(bu 2
132 \fBname\fP (string) \- Repository name.
133 .IP \(bu 2
134 \fBis_enabled\fP (boolean) \- Repository status, either \fBtrue\fP (enabled),
135 or \fBfalse\fP (disabled).
136 .IP \(bu 2
137 \fBpriority\fP (integer) \- Repository priority.
138 .IP \(bu 2
139 \fBcost\fP (integer) \- Repository cost.
140 .IP \(bu 2
141 \fBtype\fP (string) \- Repository type.
142 .IP \(bu 2
143 \fBexclude_pkgs\fP (array of strings) \- List of excluded packages.
144 .IP \(bu 2
145 \fBinclude_pkgs\fP (array of strings) \- List of included packages.
146 .IP \(bu 2
147 \fBtimestamp\fP (integer) \- Timestamp of the last metadata update,
148 UNIX time.
149 .IP \(bu 2
150 \fBmetadata_expire\fP (integer) \- Metadata expiration time. If not set, value
151 is taken from global config.
152 .IP \(bu 2
153 \fBskip_if_unavailable\fP (boolean) \- Whether to skip the repository
154 if it is unavailable.
155 .IP \(bu 2
156 \fBrepo_file_path\fP (string) \- Path to the repository file.
157 .IP \(bu 2
158 \fBbase_url\fP (array of strings) \- List of base URLs. They are “effective”
159 base URLs, i.e., after expanding any variables included.
160 .IP \(bu 2
161 \fBmetalink\fP (string) \- Metalink URL.
162 .IP \(bu 2
163 \fBmirrorlist\fP (string) \- Mirrorlist URL.
164 .IP \(bu 2
165 \fBgpg_key\fP (array of strings) \- List of OpenPGP keys.
166 .IP \(bu 2
167 \fBrepo_gpgcheck\fP (boolean) \- Whether to perform GPG check
168 of the repository metadata.
169 .IP \(bu 2
170 \fBpkg_gpgcheck\fP (boolean) \- Whether to perform GPG check
171 of the packages.
172 .IP \(bu 2
173 \fBavailable_pkgs\fP (integer) \- Number of available packages
174 in the repository.
175 .IP \(bu 2
176 \fBpkgs\fP (integer) \- Number of packages
177 in the repository.
178 .IP \(bu 2
179 \fBsize\fP (integer) \- Total size of packages
180 in the repository, in bytes.
181 .IP \(bu 2
182 \fBcontent_tags\fP (array of strings) \- List of content tags.
183 .IP \(bu 2
184 \fBdistro_tags\fP (array of strings) \- List of distro tags.
185 .IP \(bu 2
186 \fBrevision\fP (string) \- Repository revision.
187 .IP \(bu 2
188 \fBmax_timestamp\fP (integer) \- Maximum timestamp from repomd records;
189 UNIX time.
190 .UNINDENT
191 .UNINDENT
192 .sp
193 For more details about the fields, see the \fBREPO OPTIONS\fP section in dnf5.conf(5).
194 .SH SEE ALSO
195 .INDENT 0.0
196 .INDENT 3.5
197 .nf
198 \fBdnf5(8)\fP, \-\-dump\-repo\-config option \%<#\:dump-repo-config-option-ref-label>
199 \fBdnf5.conf(5)\fP, Repo Options \%<#\:repo-options-label>
200 .fi
201 .sp
202 .UNINDENT
203 .UNINDENT
204 .SH Author
205 See AUTHORS.md in dnf5 source distribution.
206 .SH Copyright
207 Contributors to the dnf5 project.
208 .\" End of generated man page.