DNF5-SYSTEM-STATE(7)

NAME
dnf5-system-state - System state

DESCRIPTION

The DNF5 system state consists of several TOML files with their location determined by the system_state_dir configuration option (dnf5.conf(5), system_state_dir <#system-state-dir-options-label>). DNF5 uses the system state to:

1.  Store the reasons why each installed package was added to the system. The reasons can be "user" for packages that the user explicitly asked DNF5 to install, "dependency" and "weak dependency" for packages pulled in as dependencies of another package, "group" for packages installed by a group, or "external" for packages installed by another tool (e.g. rpm).

2.  Track installed groups and packages installed by these groups.

3.  Track installed environmental groups.

    The way of storing the DNF5 system state is an internal implementation detail and may change at any time. To modify the state, always use the DNF5 command-line interface or DNF5 API.

RECOVERING FROM A CORRUPTED SYSTEM STATE

If the system state files become corrupted, simply back up and remove the corrupted TOML file mentioned in the error message. It will be regenerated during the next successful DNF5 transaction. The regenerated files may lack some data, such as the reasons why packages were installed or the repositories from which they were installed.

Author
See AUTHORS.md in dnf5 source distribution.

Copyright
Contributors to the dnf5 project.