Instances of this class describe a resolved transaction set. The transaction object can be iterated for the contained
The packaging requests from the contained items are later passed to the core package manager (RPM) as they are without further dependency resolving. If the set is not fit for an actual transaction (e.g. introduces conflicts, has inconsistent dependencies) RPM then by default refuses to proceed.
add_downgrade(new, downgraded, obsoleted)¶
Add a downgrade operation to the transaction. new is a
Packageto downgrade to, downgraded is the installed
Packagebeing downgraded, obsoleted is a list of installed
Packagesthat are obsoleted by the downgrade (or
Nonefor no obsoletes).
add_install(new, obsoleted, reason='unknown')¶
Add an install operation to the transaction. new is a
Packageto install, obsoleted is a list of installed
Packagesthat are obsoleted by new (or
Nonefor no obsoletes). reason, if provided, must be either
'dep'for a package installed as a dependency,
'user'for a package installed per user’s explicit request or
'unknown'for cases where the package’s origin can not be decided. This information is stored in the DNF package database and used for instance by the functionality that removes excess packages (see clean_requirements_on_remove).
add_reinstall(new, reinstalled, obsoleted)¶