dnf5-system-state - Man Page

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). 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.

Referenced By

dnf5(8), dnf5.conf(5).

The man page dnf-system-state(7) is an alias of dnf5-system-state(7).

Sep 20, 2024 dnf5