---
name: "dnf5-comps"
section: "7"
platform: "linux"
package: "dnf5"
version: "5.4.6.0-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/dnf5-comps"
---

# dnf5-comps(7)

Comps Groups And Environments

## NAME

dnf5-comps - Comps Groups And Environments

## DESCRIPTION

Comps files are used for grouping of packages into functional groups. They are stored in repository metadata files under the **comps.xml** filename.

There are two types of structures that can be used for grouping. The first is a *group* which is composed of lists of packages. The second one is an *environment* that is composed from the groups.

Each *environment* is made of mandatory and optional groups. All mandatory groups have to be installed, so the *environment* is marked as *installed*. Optional groups are not installed by default, they have to be added using the **--with-optional** argument.

In the *group*, there are four levels of packages:

- ***mandatory***

  ```
  These are the essential packages for the functionality of the group.
  These have to be installed for the group to be considered installed.
  ```

- ***default***

  ```
  These are packages installed together with mandatory packages.
  They can be excluded, f.e. using the --exclude=PACKAGE-SPEC-N,... argument.
  ```

- ***optional***

  ```
  These packages are not installed by default.
  They can be included using the --with-optional argument.
  ```

- ***conditional***

  ```
  These packages are brought in the transaction if their required package is to be installed.
  ```

For commands operating with groups and environments, see references below.

## SEE ALSO

```
dnf5-group(8), Group command <#group-command-ref-label>
dnf5-environment(8), Environment command <#environment-command-ref-label>
dnf5-specs(7), Patterns specification <#specs-misc-ref-label>
```

## Author

See AUTHORS.md in dnf5 source distribution.

## Copyright

Contributors to the dnf5 project.
