Scroll to navigation

DNF-TRANSACTION-JSON(5) DNF DNF-TRANSACTION-JSON(5)

NAME

dnf-transaction-json - DNF Stored Transaction JSON

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

Type: string

The version of the stored transaction format, in the form MAJOR.MINOR.

MAJOR version denotes backwards incompatible changes (old dnf won't work with new transaction JSON).

MINOR version denotes extending the format without breaking backwards compatibility (old dnf can work with new transaction JSON).

Type: an array of rpm objects

A list of RPM packages in the transaction.

Type: an array of group objects

A list of groups in the transaction.

Type: an array of group objects

A list of environment groups in the transaction.


RPM OBJECT

Type: string

Possible values: Downgrade, Downgraded, Install, Obsoleted, Reason Change, Reinstall, Reinstalled, Removed, Upgrade, Upgraded

The action performed on the package in the transaction.

Type: string

NEVRA (name-epoch:version-release.arch) of the package.

Type: string

Possible values: dependency, clean, group, unknown, user, weak-dependency

The reason why the package was pulled into the transaction.

Type: 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

Type: string

Possible values: Install, Upgrade, Removed

The action performed on the group in the transaction.

Type: string

The id of the group.

Type: string

Possible values: conditional, default, mandatory, optional

The types of packages in the group that will be installed. Valid only for the Install action.

Type: an array of group-package objects

The packages belonging to the group in the transaction.


ENVIRONMENT OBJECT

Type: string

Possible values: Install, Upgrade, Removed

The action performed on the environment group in the transaction.

Type: string

The id of the environment group.

Type: string

Possible values: conditional, default, mandatory, optional

The types of packages in the environment group that will be installed. Valid only for the Install action.

Type: an array of environment-group objects

The groups belonging to the environment in the transaction.


GROUP-PACKAGE OBJECT

Type: boolean

Whether the package is considered installed as part of the group.

Type: string

The name of the package.

Type: string

Possible values: conditional, default, mandatory, optional

The type of the package in the group.


ENVIRONMENT-GROUP OBJECT

Type: string

Possible values: mandatory, optional

The type of the group in the environment.

Type: string

The id of the group.

Type: boolean

Whether the group is considered installed as part of the environment.


AUTHOR

See AUTHORS in DNF source distribution.

COPYRIGHT

2012-2024, Red Hat, Licensed under GPLv2+

April 22, 2024 4.14.0