DNF5-SYSTEM-STATE(7)
β¨ DNF5-SYSTEM-STATE β¨
okay bestie, welcome to the dnf5-system-state page, part of the dnf5 manual π
this is where we talk about... the system state. yes it's as mysterious as it sounds. let's go π«Ά
πΈ NAME πΈ
dnf5-system-state β System state. literally just that. the vibe. the whole thing. π¦
π DESCRIPTION π
okay so the DNF5 system state is a bunch of TOML files, and where they live is decided by the system_state_dir configuration option (peep dnf5.conf(5), specifically the system_state_dir bit). πβ¨
and what does DNF5 actually do with this system state? three things, and they're all lowkey important:
- It stores the reasons why each installed package got added to your system. the reasons can be:
"user"β for packages you, the main character, explicitly asked DNF5 to install π"dependency"and"weak dependency"β for packages that got dragged in as dependencies of another package (not their fault, they're just along for the ride) π"group"β for packages installed by a group"external"β for packages installed by another tool (e.g.rpm), so not DNF5's doing at all, no cap
- It tracks installed groups and the packages installed by those groups. π
- It tracks installed environmental groups. π
β οΈ and now the serious part: the way DNF5 stores the system state is an internal implementation detail and may change at any time. fr fr. so to modify the state, always use the DNF5 command-line interface or the DNF5 API. do not go poking at the files yourself, bestie, I'm begging π
π RECOVERING FROM A CORRUPTED SYSTEM STATE π
so it happened. the system state files got corrupted. it's giving tragedy but we can fix it πͺ
simply back up and remove the corrupted TOML file that's mentioned in the error message. that's it. it will be regenerated during the next successful DNF5 transaction, slay β¨
π but heads up: the regenerated files may lack some data, such as the reasons why packages were installed, or the repositories from which they were installed. so like... it's back, but it's not the same. lowkey devastating, but at least it's not broken anymore π©Ή
ποΈ Author ποΈ
See AUTHORS.md in the dnf5 source distribution. go give them their flowers π
Β©οΈ Copyright Β©οΈ
Contributors to the dnf5 project. π«Ά
and that's the whole page, babe π this was brought to you by the dnf5 project, dated Sep 24, 2026 β take care of your TOML files and they'll take care of you ππ¦π
π¦ where this page comes from
- fedora 44: dnf5 5.4.6.0-1.fc44 Β· GPL-2.0-or-later
- fedora 44: dnf5 5.4.6.0-1.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms