Stored Transaction JSON Format
The stored transaction format is considered unstable and may change in an incompatible way at any time. It will work if the same version of dnf is used to store and replay (or between versions as long as it stays the same).
Top-level Object
versionType: string
The version of the stored transaction format, in the form
MAJOR.MINOR.MAJORversion denotes backwards incompatible changes (old dnf won't work with new transaction JSON).MINORversion denotes extending the format without breaking backwards compatibility (old dnf can work with new transaction JSON).rpmsType: an array of rpm objects
A list of RPM packages in the transaction.
groupsType: an array of group objects
A list of groups in the transaction.
environmentsType: an array of group objects
A list of environment groups in the transaction.
rpm Object
actionType: string
Possible values:
Downgrade, Downgraded, Install, Obsoleted, Reason Change, Reinstall, Reinstalled, Removed, Upgrade, UpgradedThe action performed on the package in the transaction.
nevraType: string
NEVRA(name-epoch:version-release.arch) of the package.reasonType: string
Possible values:
dependency, clean, group, unknown, user, weak-dependencyThe reason why the package was pulled into the transaction.
repo_idType: string
The id of the repository this package is coming from. Note repository ids are defined in the local repository configuration and may differ between systems.
group Object
actionType: string
Possible values:
Install, Upgrade, RemovedThe action performed on the group in the transaction.
idType: string
The id of the group.
package_typesType: string
Possible values:
conditional, default, mandatory, optionalThe types of packages in the group that will be installed. Valid only for the
Installaction.packagesType: an array of group-package objects
The packages belonging to the group in the transaction.
environment Object
actionType: string
Possible values:
Install, Upgrade, RemovedThe action performed on the environment group in the transaction.
idType: string
The id of the environment group.
package_typesType: string
Possible values:
conditional, default, mandatory, optionalThe types of packages in the environment group that will be installed. Valid only for the
Installaction.groupType: an array of environment-group objects
The groups belonging to the environment in the transaction.
group-package Object
installedType: boolean
Whether the package is considered installed as part of the group.
nameType: string
The name of the package.
package_typeType: string
Possible values:
conditional, default, mandatory, optionalThe type of the package in the group.
environment-group Object
group_typeType: string
Possible values:
mandatory, optionalThe type of the group in the environment.
idType: string
The id of the group.
installedType: boolean
Whether the group is considered installed as part of the environment.