Debian Codegraph @

upstream/mageia-cauldron/man8/dnf5-group.8

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-GROUP" "8" "May 10, 2026" "" "dnf5"
31 .SH NAME
32 dnf5-group \- Group Command
33 .SH SYNOPSIS
34 .sp
35 \fBdnf5 group {list|info} [options] [<group\-spec>...]\fP
36 .sp
37 \fBdnf5 group {install|remove|upgrade} [options] <group\-spec|environment\-spec>...\fP
38 .SH DESCRIPTION
39 .sp
40 The \fBgroup\fP command in \fBDNF5\fP offers several queries for getting information about groups, packages
41 related to them and it is also used for groups installation.
42 To query environments use separate \fBenvironment\fP command.
43 Note: \fBdnf\-4\fP listed both environments and groups with the \fBgroup\fP command.
44 .sp
45 Optional \fBgroup\-spec\fP arguments can be passed to filter groups with given IDs or names. The install, remove and
46 upgrade commands take both \fBgroup\-spec\fP and \fBenvironment\-spec\fP, but in case both groups and
47 environments match, only groups are affected.
48 .SH SUBCOMMANDS
49 .INDENT 0.0
50 .TP
51 .B \fBlist\fP
52 List all matching groups, either among installed or available groups. If
53 nothing is specified, list all known groups. \fB\-\-installed\fP and \fB\-\-available\fP
54 options narrow down the requested list. If \fB\-\-hidden\fP option is used, also
55 hidden groups are included in the list.
56 .TP
57 .B \fBinfo\fP
58 Print detailed information about groups.
59 The command accepts the same options as the \fBlist\fP subcommand.
60 .TP
61 .B \fBinstall\fP
62 Mark the specified environments or groups installed and install groups and packages they
63 contain.
64 .sp
65 If an environments or group is already (partially) installed, the command installs the
66 missing groups and packages it contains.
67 .sp
68 In case both groups and environments match, only groups are affected.
69 .sp
70 If the \fB\-\-with\-optional\fP option is used, also include \fBOptional\fP packages of groups. By default,
71 all \fBMandatory\fP and \fBDefault\fP packages will be installed whenever possible. \fBConditional\fP
72 packages are installed if they meet their requirement. This can be configured by
73 \fBdnf5.conf(5)\fP, \fI\%group_package_types\fP\&.
74 .sp
75 If the \fB\-\-no\-packages\fP option is used, no packages will be installed by this command.
76 Only currently installed group packages are considered to be installed with the groups.
77 .TP
78 .B \fBremove\fP
79 Mark the specified environments or groups removed and remove groups and packages they contain
80 unless they belong to another installed environment or group, were installed explicitly by the
81 user or (in case of packages) were installed as a dependency.
82 .sp
83 In case both groups and environments match, only groups are affected.
84 .sp
85 If the \fB\-\-no\-packages\fP option is used, no packages will be removed by this command.
86 .TP
87 .B \fBupgrade\fP
88 Upgrade a definition of the specified environments and groups and the groups and packages they
89 contain. If new groups or packages have been added to the current definitions since the
90 environments or groups were installed, the new groups and packages will be installed. Likewise,
91 if some groups or packages have been removed from the definition, they will be removed
92 unless they were installed for a different reason (belong to another installed environment or
93 group, were installed explicitly by the user or were installed as a dependency).
94 .sp
95 In case both groups and environments match, only groups are affected.
96 .UNINDENT
97 .SH OPTIONS FOR LIST AND INFO
98 .INDENT 0.0
99 .TP
100 .B \fB\-\-available\fP
101 .nf
102 Show only available groups. Those which are not installed, but known to \fBDNF5\fP\&.
103 .fi
104 .sp
105 .TP
106 .B \fB\-\-installed\fP
107 .nf
108 Show only installed groups.
109 .fi
110 .sp
111 .TP
112 .B \fB\-\-hidden\fP
113 .nf
114 Show also hidden groups.
115 .fi
116 .sp
117 .TP
118 .B \fB\-\-contains\-pkgs=PACKAGE_NAME,...\fP
119 .nf
120 Show only groups containing packages with specified names. List option, supports globs.
121 .fi
122 .sp
123 .UNINDENT
124 .SH OPTIONS FOR INSTALL, REMOVE AND UPGRADE
125 .INDENT 0.0
126 .TP
127 .B \fB\-\-with\-optional\fP
128 .nf
129 Include optional packages from the groups.
130 Used with \fBinstall\fP command.
131 .fi
132 .sp
133 .TP
134 .B \fB\-\-no\-packages\fP
135 .nf
136 Operate exclusively on the environments and groups without manipulating any packages.
137 Used with \fBinstall\fP and \fBremove\fP commands.
138 .fi
139 .sp
140 .TP
141 .B \fB\-\-allowerasing\fP
142 .nf
143 Allow removing of installed packages to resolve any potential dependency problems.
144 Used with \fBinstall\fP and \fBupgrade\fP commands.
145 .fi
146 .sp
147 .TP
148 .B \fB\-\-skip\-broken\fP
149 .nf
150 Resolve any dependency problems by removing packages that are causing problems from the transaction.
151 Used with \fBinstall\fP command.
152 .fi
153 .sp
154 .TP
155 .B \fB\-\-skip\-unavailable\fP
156 .nf
157 Allow skipping packages that are not possible to install or upgrade.
158 Used with \fBinstall\fP and \fBupgrade\fP commands.
159 .fi
160 .sp
161 .TP
162 .B \fB\-\-allow\-downgrade\fP
163 .nf
164 Enable downgrade of dependencies when resolving the requested operation.
165 Used with \fBinstall\fP and \fBupgrade\fP commands.
166 .fi
167 .sp
168 .TP
169 .B \fB\-\-no\-allow\-downgrade\fP
170 .nf
171 Disable downgrade of dependencies when resolving the requested operation.
172 Used with \fBinstall\fP and \fBupgrade\fP commands.
173 .fi
174 .sp
175 .TP
176 .B \fB\-\-downloadonly\fP
177 .nf
178 Download the resolved package set without executing an RPM transaction.
179 Used with \fBinstall\fP and \fBupgrade\fP commands.
180 .fi
181 .sp
182 .UNINDENT
183 .INDENT 0.0
184 .TP
185 .B \fB\-\-offline\fP
186 .nf
187 Store the transaction to be performed offline. See \fI\%offline command\fP, \fBdnf5\-offline(8)\fP\&.
188 .fi
189 .sp
190 .TP
191 .B \fB\-\-store=PATH\fP
192 .nf
193 Store the current transaction in a directory at the specified \fBPATH\fP instead of running it.
194 The stored transaction can be performed by the \fI\%replay command\fP, \fBdnf5\-replay(8)\fP\&.
195 Note that repository ids in the stored transaction are mangled to \fB@stored_transaction(repo_id)\fP this is required
196 because during replaying the stored repositories are recreated and they might collide with already present repositories
197 (this doesn\(aqt apply to the special @System repository).
198 .fi
199 .sp
200 .UNINDENT
201 .SH EXAMPLES
202 .INDENT 0.0
203 .TP
204 .B \fBdnf5 group list \-\-hidden\fP
205 .nf
206 Show list of all groups, including hidden ones.
207 .fi
208 .sp
209 .TP
210 .B \fBdnf5 group info *xfce*\fP
211 .nf
212 Show detailed info about all groups related to \fBXfce\fP\&.
213 .fi
214 .sp
215 .TP
216 .B \fBdnf5 group install mysql \-\-with\-optional\fP
217 .nf
218 Install the \fBmysql\fP group including optional packages.
219 .fi
220 .sp
221 .TP
222 .B \fBdnf5 group upgrade mysql\fP
223 .nf
224 Bring packages of the \fBmysql\fP group to compliance with a current
225 definition of the group.
226 .fi
227 .sp
228 .UNINDENT
229 .SH SEE ALSO
230 .INDENT 0.0
231 .INDENT 3.5
232 .nf
233 \fBdnf5\-comps(7)\fP, \fI\%Comps groups and environments\fP
234 \fBdnf5\-specs(7)\fP, \fI\%Patterns specification\fP
235 .fi
236 .sp
237 .UNINDENT
238 .UNINDENT
239 .SH AUTHOR
240 See AUTHORS.md in dnf5 source distribution.
241 .SH COPYRIGHT
242 Contributors to the dnf5 project.
243 .\" Generated by docutils manpage writer.
244 .