dnf5-group - Man Page
Group Command
Synopsis
dnf5 group <subcommand> [options] [<group-spec>...]
Description
The group command in DNF5 offers several queries for getting information about groups, packages related to them and it is also used for groups installation.
Optional group-spec arguments could be passed to filter only groups with given names.
Subcommands
- list
List all matching groups, either among installed or available groups. If nothing is specified, list all known groups. --installed and --available options narrow down the requested list. If --hidden option is used, also hidden groups are included in the list.
- info
Print detailed information about groups. The command accepts the same options as the list subcommand.
- install
Mark the specified groups installed and install packages it contains. Also include optional packages of the group if the --with-optional option is specified. All Mandatory and Default packages will be installed whenever possible. Conditional packages are installed if they meet their requirement. If the group is already (partially) installed, the command installs the missing packages from the group.
If the --no-packages option is used, no new packages will be installed by this command. Only currently installed group packages are considered to be installed with the group.
- remove
Mark the group removed and remove those packages in the group from the system which do not belong to another installed group and were not installed explicitly by the user.
If the --no-packages option is used, no packages will be removed by this command.
Options
- --available
Show only available groups. Those which are not installed, but known to DNF5.
- --installed
Show only installed groups.
- --hidden
Show also hidden groups.
- --with-optional
Used with install command to include optional packages from the groups.
- --no-packages
Used with install and remove commands to operate exclusively on the groups without manipulating any packages.
- --contains-pkgs
Show only groups containing packges with specified names. List option, supports globs.
Examples
- dnf5 group list --hidden
Show list of all groups, including hidden ones.
- dnf5 group info *xfce*
Show detailed info about all groups related to Xfce.
- dnf5 group install mysql --with-optional
Install the mysql group including optional packages.
See Also
dnf5-comps(7), Comps groups and environments dnf5-specs(7), Patterns specification
Author
See AUTHORS.md in dnf5 source distribution.
Copyright
Contributors to the dnf5 project.