libdnf5.base

class libdnf5.base.Base(*args)

Instances of libdnf5::Base are the central point of functionality supplied by libdnf5. An application will typically create a single instance of this class which it will keep for the run-time needed to accomplish its packaging tasks. Base instances are stateful objects owning various data.

are_repos_configured()

Returns true when notify_repos_configured() was already called (by user or automatically)

enable_disable_plugins(plugin_names, enable)

Adds a request to enable/disable plugins that match the names (glob patterns) in the list. Can be called multiple times. Requests (plugin_names and enable state) are queued. The enable state of a plugin is set according to the last matching request. Must be called before the Base::setup. :type plugin_names: std::vector< std::string,std::allocator< std::string > > :param plugin_names: Plugin names (glob patterns) to enable/disable :type enable: boolean :param enable: Request: true - enable plugins, false - disable plugins :raises: libdnf5::UserAssertionError When called after Base::setup

get_config()
Return type:

ConfigMain

Returns:

a reference to configuration

get_download_callbacks()
static get_locked_base()

Returns a pointer to a locked “Base” instance or “nullptr” if no instance is locked.

get_logger()
get_module_sack()

Throws libdnf5::AssertionError when used with libdnf5 compiled without modules enabled.

get_plugins_info()
Return type:

std::vector< libdnf5::plugin::PluginInfo,std::allocator< libdnf5::plugin::PluginInfo > >

Returns:

a list of information about plugins found during Base::setup

Raises:

libdnf5::UserAssertionError When called before Base::setup

get_repo_sack()
get_rpm_package_sack()
get_transaction_history()

Warning: This method is experimental/unstable and should not be relied on. It may be removed without warning

get_vars()

Gets base variables. They can be used in configuration files. Syntax in the config - ${var_name} or $var_name.

get_weak_ptr()
is_initialized()

Returns true when setup() (mandatory method in many workflows) was already called

load_config()

Loads main configuration. The file defined in the current configuration and files in the drop-in directories are used.

lock()

Sets the pointer to the locked instance “Base” to “this” instance. Blocks if the pointer is already set. Pointer to a locked “Base” instance can be obtained using “get_locked_base()”.

notify_repos_configured()

Notifies the libdnf5 library that the repositories are configured. It can be called before load_repos. The libdnf5 library can then call plugins that can make final adjustments to the repositories configuration. In the case that it has not been called, it is called automatically at the beginning of the load_repos method. Calling the method for the second time result in throwing an exception.

set_download_callbacks(download_callbacks)
setup()

Loads libdnf plugins, vars from environment, varsdirs and installroot (releasever, arch) and resolves configuration of protected_packages (glob:). To prevent differences between configuration and internal Base settings, following configurations will be locked: installroot, varsdir. The method is supposed to be called after configuration and vars are updated, application plugins applied their pre configuration modification in configuration, but before repositories are loaded or any Package or Advisory query created. The method is recommended to be called before loading repositories, because not all variables for substitutions might be available. Caution - modification of vars after this call might be problematic, because architecture is already fixed for our solver. Calling the method for the second time result in throwing an exception

thisown
unlock()

Resets the pointer to a locked “Base” instance to “nullptr”. Throws an exception if another or no instance is locked.

class libdnf5.base.BaseWeakPtr(*args)

WeakPtr is a “smart” pointer. It contains a pointer to resource and to guard of resource. WeakPtr pointer can be owner of the resource. However, the resource itself may depend on another resource. WeakPtr registers/unregisters itself at the guard of resource. And the resource guard invalidates the registered WeakPtrs when the resource is unusable (eg. its dependecny was released). Note on thread safety: It is safe to create, access and destroy WeakPtrs in multiple threads simultaneously.

are_repos_configured()

Returns true when notify_repos_configured() was already called (by user or automatically)

enable_disable_plugins(plugin_names, enable)

Adds a request to enable/disable plugins that match the names (glob patterns) in the list. Can be called multiple times. Requests (plugin_names and enable state) are queued. The enable state of a plugin is set according to the last matching request. Must be called before the Base::setup. :type plugin_names: std::vector< std::string,std::allocator< std::string > > :param plugin_names: Plugin names (glob patterns) to enable/disable :type enable: boolean :param enable: Request: true - enable plugins, false - disable plugins :raises: libdnf5::UserAssertionError When called after Base::setup

get()

Returns a pointer to the managed object. Generates exception if object is not valid.

get_config()
Return type:

ConfigMain

Returns:

a reference to configuration

get_download_callbacks()
get_locked_base()

Returns a pointer to a locked “Base” instance or “nullptr” if no instance is locked.

get_logger()
get_module_sack()

Throws libdnf5::AssertionError when used with libdnf5 compiled without modules enabled.

get_plugins_info()
Return type:

std::vector< libdnf5::plugin::PluginInfo,std::allocator< libdnf5::plugin::PluginInfo > >

Returns:

a list of information about plugins found during Base::setup

Raises:

libdnf5::UserAssertionError When called before Base::setup

get_repo_sack()
get_rpm_package_sack()
get_transaction_history()

Warning: This method is experimental/unstable and should not be relied on. It may be removed without warning

get_vars()

Gets base variables. They can be used in configuration files. Syntax in the config - ${var_name} or $var_name.

get_weak_ptr()
has_same_guard(other)

Checks if the other WeakPtr instance has the same WeakPtrGuard.

is_initialized()

Returns true when setup() (mandatory method in many workflows) was already called

is_valid()

Checks if managed object is valid.

load_config()

Loads main configuration. The file defined in the current configuration and files in the drop-in directories are used.

lock()

Sets the pointer to the locked instance “Base” to “this” instance. Blocks if the pointer is already set. Pointer to a locked “Base” instance can be obtained using “get_locked_base()”.

notify_repos_configured()

Notifies the libdnf5 library that the repositories are configured. It can be called before load_repos. The libdnf5 library can then call plugins that can make final adjustments to the repositories configuration. In the case that it has not been called, it is called automatically at the beginning of the load_repos method. Calling the method for the second time result in throwing an exception.

set_download_callbacks(download_callbacks)
setup()

Loads libdnf plugins, vars from environment, varsdirs and installroot (releasever, arch) and resolves configuration of protected_packages (glob:). To prevent differences between configuration and internal Base settings, following configurations will be locked: installroot, varsdir. The method is supposed to be called after configuration and vars are updated, application plugins applied their pre configuration modification in configuration, but before repositories are loaded or any Package or Advisory query created. The method is recommended to be called before loading repositories, because not all variables for substitutions might be available. Caution - modification of vars after this call might be problematic, because architecture is already fixed for our solver. Calling the method for the second time result in throwing an exception

thisown
unlock()

Resets the pointer to a locked “Base” instance to “nullptr”. Throws an exception if another or no instance is locked.

class libdnf5.base.Goal(*args)

Centralized point to perform operations with RPMs, Comps groups, and Modules

add_debug_install(*args)

Process spec to install related debug info and debug source packages :type spec: string :param spec: A string with installation spec :type settings: GoalJobSettings, optional :param settings: A structure to override default goal settings.

add_downgrade(*args)

High level API for an artifact downgrade. See add_install() for details. :type spec: string :param spec: A string with upgrade spec :type settings: GoalJobSettings, optional :param settings: A structure to override default goal settings.

add_group_install(*args)

Add group install request to the goal. The spec will be resolved to groups in the resolve() call. Also packages of the types specified in setting.group_package_types be installed.

Parameters:
  • spec (string) – A string describing the Goal group install request.

  • reason (int) – Reason why the group is installed (USER/DEPENDENCY)

  • settings (GoalJobSettings, optional) – A structure to override default goal settings.

add_group_remove(*args)

Add group remove request to the goal. The spec will be resolved to groups in the resolve() call. Also packages not belonging to another group and not explicitly user-installed will get removed.

Parameters:
  • spec (string) – A string describing the Goal group remove request.

  • reason (int) – Reason why the group is removed.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings.

add_group_upgrade(*args)

Add group upgrade request to the goal. Upgrades the packages from the group and upgrades the group itself. The latter comprises of installing packages that were added to the group by the distribution and removing packages that got removed from the group as far as they were not installed explicitly by the user and are not required by any other installed package.

Parameters:
  • spec (string) – A string with group specification

  • settings (GoalJobSettings, optional) – A structure to override default goal settings.

add_install(*args)

High level API for an artifact installation. A spec can be either a package specification matched against NEVRA, provides, and file provides, or it can be a path to local rpm file, or URL of rpm to be installed. By using `` prefix you can also specify a group, environmental group, or a module to be installed. :type spec: string :param spec: A string with installation spec :type settings: GoalJobSettings, optional :param settings: A structure to override default goal settings.

add_module_disable(spec, settings)

Add module disable request to the goal. Throws libdnf5::AssertionError when used with libdnf5 compiled without modules enabled. :type spec: string :param spec: A string with module spec to disable. :type settings: GoalJobSettings :param settings: A structure to override default goal settings.

add_module_enable(spec, settings)

Add module enable request to the goal. Throws libdnf5::AssertionError when used with libdnf5 compiled without modules enabled. :type spec: string :param spec: A string with module spec to enable. :type settings: GoalJobSettings :param settings: A structure to override default goal settings.

add_module_reset(spec, settings)

Add module reset request to the goal. Throws libdnf5::AssertionError when used with libdnf5 compiled without modules enabled. :type spec: string :param spec: A string with module spec to reset. :type settings: GoalJobSettings :param settings: A structure to override default goal settings.

add_provide_install(*args)

Request to install providers of the spec. Useful to install package using rich dependencies. The spec (e.g. “(depA and depB)”) is not parsed but directly passed to the solver to install package(s) which provide the spec. Solver then creates a job like: “job install provides depA and depB”.

Parameters:
  • spec (string) – A string with libsolv relational dependency.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. The value from_repo_ids is not used.

add_redo_transaction(*args)

Warning: This method is experimental/unstable and should not be relied on. It may be removed without warning Add redo request of history transaction to the goal. Can be called only once per Goal.

Parameters:
  • transaction (Transaction) – A history transaction to be repeated.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings.

add_reinstall(*args)

High level API for an artifact reinstall. See add_install() for details. :type spec: string :param spec: A string with reinstall spec :type settings: GoalJobSettings, optional :param settings: A structure to override default goal settings.

add_remove(*args)

High level API for an artifact removal. See add_install() for details. :type spec: string :param spec: A string with reinstall spec :type settings: GoalJobSettings, optional :param settings: A structure to override default goal settings.

add_revert_transactions(*args)

Warning: This method is experimental/unstable and should not be relied on. It may be removed without warning Add revert request of history transactions to the goal. Can be called only once per Goal.

Parameters:
  • transactions (std::vector< libdnf5::transaction::Transaction,std::allocator< libdnf5::transaction::Transaction > >) – A vector of history transactions to be reverted.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings.

add_rpm_distro_sync(*args)

Overload 1: Add distrosync request to the goal. The spec will be resolved to packages in the resolve() call. By default uses clean_requirements_on_remove set to false, which can be overridden in settings.

Parameters:
  • spec (string) – A string describing the Goal distrosync request.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. The value from_repo_ids is not used.


Overload 2: Add distrosync job of all installed packages to the goal if not limited in settings. By default uses clean_requirements_on_remove set to false, which can be overridden in settings.

Parameters:

settings (GoalJobSettings, optional) – A structure to override default goal settings. Values from_repo_ids is not used.


Overload 3: Add distrosync job of all installed packages to the goal if not limited in settings. By default uses clean_requirements_on_remove set to false, which can be overridden in settings.

Parameters:

settings – A structure to override default goal settings. Values from_repo_ids is not used.


Overload 4: Add distrosync request to the goal. By default uses clean_requirements_on_remove set to false, which can be overridden in settings.

Parameters:
  • rpm_package (Package) – A package hat will be used as candidate for the distrosync action.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. Only strict, best, and clean_requirements_on_remove values are used.


Overload 5: Add distrosync request to the goal. By default uses clean_requirements_on_remove set to false, which can be overridden in settings.

Parameters:
  • rpm_package (Package) – A package hat will be used as candidate for the distrosync action.

  • settings – A structure to override default goal settings. Only strict, best, and clean_requirements_on_remove values are used.


Overload 6: Add distrosync request to the goal. By default uses clean_requirements_on_remove set to false, which can be overridden in settings.

Parameters:
  • package_set (PackageSet) – A package_set containing candidates for the distrosync action.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. Only strict, best, and clean_requirements_on_remove values are used.


Overload 7: Add distrosync request to the goal. By default uses clean_requirements_on_remove set to false, which can be overridden in settings.

Parameters:
  • package_set (PackageSet) – A package_set containing candidates for the distrosync action.

  • settings – A structure to override default goal settings. Only strict, best, and clean_requirements_on_remove values are used.

add_rpm_downgrade(*args)

Overload 1: Add downgrade request to the goal. The spec will be resolved to packages in the resolve() call. By default uses clean_requirements_on_remove set to false, which can be overridden in settings.

Parameters:
  • spec (string) – A string describing the Goal downgrade request.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. The value from_repo_ids is not used.


Overload 2: Add downgrade request to the goal. By default uses clean_requirements_on_remove set to false, which can be overridden in settings. Ignores obsoletes. Only installed packages with the same name, architecture and higher version can be downgraded. Skips package if the same or lower version is installed.

Parameters:
  • rpm_package (Package) – A package that will be used as candidate for the downgrade action.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. Only strict, best, and clean_requirements_on_remove are used.


Overload 3: Add downgrade request to the goal. By default uses clean_requirements_on_remove set to false, which can be overridden in settings. Ignores obsoletes. Only installed packages with the same name, architecture and higher version can be downgraded. Skips package if the same or lower version is installed.

Parameters:
  • rpm_package (Package) – A package that will be used as candidate for the downgrade action.

  • settings – A structure to override default goal settings. Only strict, best, and clean_requirements_on_remove are used.

add_rpm_install(*args)

Overload 1: Add install request to the goal. The spec will be resolved to packages in the resolve() call. The operation will not result in a reinstall if the requested package is already installed. By default uses clean_requirements_on_remove set to false, which can be overridden in settings.

Parameters:
  • spec (string) – A string describing the Goal install request.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. The value from_repo_ids is not used.


Overload 2: Add install request to the goal. The operation will not result in a reinstall when requested package with the same NEVRA is already installed. By default uses clean_requirements_on_remove set to false.

Parameters:
  • rpm_package (Package) – A package to be installed.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. Only strict, best, and clean_requirements_on_remove are used.


Overload 3: Add install request to the goal. The operation will not result in a reinstall when requested package with the same NEVRA is already installed. By default uses clean_requirements_on_remove set to false.

Parameters:
  • rpm_package (Package) – A package to be installed.

  • settings – A structure to override default goal settings. Only strict, best, and clean_requirements_on_remove are used.


Overload 4: Add install request to the goal. The operation will not result in a reinstall when requested package with the same NEVRA is already installed. By default uses clean_requirements_on_remove set to false.

Parameters:
  • package_set (PackageSet) – A package_set containing candidates for the install action.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. Only strict, best, and clean_requirements_on_remove are used.


Overload 5: Add install request to the goal. The operation will not result in a reinstall when requested package with the same NEVRA is already installed. By default uses clean_requirements_on_remove set to false.

Parameters:
  • package_set (PackageSet) – A package_set containing candidates for the install action.

  • settings – A structure to override default goal settings. Only strict, best, and clean_requirements_on_remove are used.

add_rpm_install_or_reinstall(*args)

Overload 1: Add install or reinstall request to the goal. By default uses clean_requirements_on_remove set to false.

Parameters:
  • rpm_package (Package) – A package to be installed or reinstalled.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. Only strict, best, and clean_requirements_on_remove are used.


Overload 2: Add install or reinstall request to the goal. By default uses clean_requirements_on_remove set to false.

Parameters:
  • package_set (PackageSet) – A package_set containing candidates for the install or reinstall action.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. Only strict, best, and clean_requirements_on_remove are used.


Overload 3: Add install or reinstall request to the goal. By default uses clean_requirements_on_remove set to false.

Parameters:
  • package_set (PackageSet) – A package_set containing candidates for the install or reinstall action.

  • settings – A structure to override default goal settings. Only strict, best, and clean_requirements_on_remove are used.

add_rpm_reason_change(*args)

Add reason change request to the goal.

Parameters:
  • spec (string) – A string describing the requested package

  • reason (int) – New reason for the package

  • group_id (string, optional) – Id of group the package belongs to (only relevant in case the reason is GROUP)

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. Only ResolveSpecSettings values are used

add_rpm_reinstall(*args)

Overload 1: Add reinstall request to the goal. The spec will be resolved to packages in the resolve() call. By default uses clean_requirements_on_remove set to false, which can be overridden in settings.

Parameters:
  • spec (string) – A string describing the Goal reinstall request.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. The value from_repo_ids is not used (not implemented yet).


Overload 2: Add reinstall request to the goal. By default uses clean_requirements_on_remove set to false.

Parameters:
  • rpm_package (Package) – A package to be reinstalled.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. Only strict, best, and clean_requirements_on_remove are used.


Overload 3: Add reinstall request to the goal. By default uses clean_requirements_on_remove set to false.

Parameters:
  • rpm_package (Package) – A package to be reinstalled.

  • settings – A structure to override default goal settings. Only strict, best, and clean_requirements_on_remove are used.

add_rpm_remove(*args)

Overload 1: Add remove request to the goal. The spec will be resolved to packages in the resolve() call. By default uses clean_requirements_on_remove according to ConfigMain, which can be overridden in settings.

Parameters:
  • spec (string) – A string describing the Goal remove request.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. Values strict and best are not used.


Overload 2: Add remove request to the goal. By default uses clean_requirements_on_remove value from ConfigMain, which can be overridden in settings.

Parameters:
  • rpm_package (Package) – A package to be removed.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. Only clean_requirements_on_remove is used.


Overload 3: Add remove request to the goal. By default uses clean_requirements_on_remove value from ConfigMain, which can be overridden in settings.

Parameters:
  • rpm_package (Package) – A package to be removed.

  • settings – A structure to override default goal settings. Only clean_requirements_on_remove is used.


Overload 4: Add remove request to the goal. By default uses clean_requirements_on_remove value from ConfigMain, which can be overridden in settings.

Parameters:
  • package_set (PackageSet) – A package_set containing packages that will be removed

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. Only clean_requirements_on_remove is used.


Overload 5: Add remove request to the goal. By default uses clean_requirements_on_remove value from ConfigMain, which can be overridden in settings.

Parameters:
  • package_set (PackageSet) – A package_set containing packages that will be removed

  • settings – A structure to override default goal settings. Only clean_requirements_on_remove is used.

add_rpm_upgrade(*args)

Overload 1: Add upgrade request to the goal. The spec will be resolved to packages in the resolve() call. By default uses clean_requirements_on_remove set to false, which can be overridden in settings.

Parameters:
  • spec (string) – A string describing the Goal upgrade request.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. Values from_repo_ids and strict are not used.

  • minimal (boolean, optional) – Whether to do smallest possible upgrade


Overload 2: Add upgrade job of all installed packages to the goal if not limited in settings. By default uses clean_requirements_on_remove set to false, which can be overridden in settings.

Parameters:
  • settings (GoalJobSettings, optional) – A structure to override default goal settings. Values from_repo_ids and strict are not used.

  • minimal (boolean, optional) – Whether to do smallest possible upgrade


Overload 3: Add upgrade job of all installed packages to the goal if not limited in settings. By default uses clean_requirements_on_remove set to false, which can be overridden in settings.

Parameters:
  • settings (GoalJobSettings, optional) – A structure to override default goal settings. Values from_repo_ids and strict are not used.

  • minimal – Whether to do smallest possible upgrade


Overload 4: Add upgrade job of all installed packages to the goal if not limited in settings. By default uses clean_requirements_on_remove set to false, which can be overridden in settings.

Parameters:
  • settings – A structure to override default goal settings. Values from_repo_ids and strict are not used.

  • minimal – Whether to do smallest possible upgrade


Overload 5: Add upgrade request to the goal. By default uses clean_requirements_on_remove set to false, which can be overridden in settings. Supports obsoletes and architecture change to/from “noarch”.

Parameters:
  • rpm_package (Package) – A package that will be used as candidate for the upgrade action.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. Only clean_requirements_on_remove and best values are used.

  • minimal (boolean, optional) – Whether to do smallest possible upgrade


Overload 6: Add upgrade request to the goal. By default uses clean_requirements_on_remove set to false, which can be overridden in settings. Supports obsoletes and architecture change to/from “noarch”.

Parameters:
  • rpm_package (Package) – A package that will be used as candidate for the upgrade action.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. Only clean_requirements_on_remove and best values are used.

  • minimal – Whether to do smallest possible upgrade


Overload 7: Add upgrade request to the goal. By default uses clean_requirements_on_remove set to false, which can be overridden in settings. Supports obsoletes and architecture change to/from “noarch”.

Parameters:
  • rpm_package (Package) – A package that will be used as candidate for the upgrade action.

  • settings – A structure to override default goal settings. Only clean_requirements_on_remove and best values are used.

  • minimal – Whether to do smallest possible upgrade


Overload 8: Add upgrade request to the goal. By default uses clean_requirements_on_remove set to false, which can be overridden in settings.

Parameters:
  • package_set (PackageSet) – A package_set containing candidates for the upgrade action.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. Only clean_requirements_on_remove and best values are used.

  • minimal (boolean, optional) – Whether to do smallest possible upgrade


Overload 9: Add upgrade request to the goal. By default uses clean_requirements_on_remove set to false, which can be overridden in settings.

Parameters:
  • package_set (PackageSet) – A package_set containing candidates for the upgrade action.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. Only clean_requirements_on_remove and best values are used.

  • minimal – Whether to do smallest possible upgrade


Overload 10: Add upgrade request to the goal. By default uses clean_requirements_on_remove set to false, which can be overridden in settings.

Parameters:
  • package_set (PackageSet) – A package_set containing candidates for the upgrade action.

  • settings – A structure to override default goal settings. Only clean_requirements_on_remove and best values are used.

  • minimal – Whether to do smallest possible upgrade

add_serialized_transaction(*args)

Warning: This method is experimental/unstable and should not be relied on. It may be removed without warning Add serialized transaction request to the goal. Only one serialized transaction can be added per goal.

Parameters:
  • transaction_path (std::filesystem::path) – A path to JSON serialized transaction.

  • settings (GoalJobSettings, optional) – A structure to override default goal settings. the packages and comps have relative paths in trans file.

add_upgrade(*args)

High level API for an artifact upgrade. See add_install() for details. :type spec: string :param spec: A string with upgrade spec :type settings: GoalJobSettings, optional :param settings: A structure to override default goal settings. :type minimal: boolean, optional :param minimal: Whether to do smallest possible upgrade

get_allow_erasing()

Return the currets setting of allow_erasing

get_base()
Return type:

BaseWeakPtr

Returns:

The Base object to which this object belongs.

Since: 5.0

reset()

Clean all request from the Goal instance

resolve()

Resolve all jobs and return a transaction object. Every time it resolves specs (strings) to packages

Return type:

Transaction

Returns:

transaction object

set_allow_erasing(value)

When true it allows to remove installed packages to resolve dependency problems

thisown
libdnf5.base.GoalAction_DISABLE
libdnf5.base.GoalAction_DISTRO_SYNC
libdnf5.base.GoalAction_DISTRO_SYNC_ALL
libdnf5.base.GoalAction_DOWNGRADE
libdnf5.base.GoalAction_ENABLE
libdnf5.base.GoalAction_INSTALL
libdnf5.base.GoalAction_INSTALL_BY_COMPS
libdnf5.base.GoalAction_INSTALL_DEBUG
libdnf5.base.GoalAction_INSTALL_OR_REINSTALL
libdnf5.base.GoalAction_INSTALL_VIA_PROVIDE
libdnf5.base.GoalAction_MERGE
libdnf5.base.GoalAction_REASON_CHANGE
libdnf5.base.GoalAction_REINSTALL
libdnf5.base.GoalAction_REMOVE
libdnf5.base.GoalAction_REPLAY_INSTALL
libdnf5.base.GoalAction_REPLAY_PARSE
libdnf5.base.GoalAction_REPLAY_REASON_CHANGE
libdnf5.base.GoalAction_REPLAY_REASON_OVERRIDE
libdnf5.base.GoalAction_REPLAY_REINSTALL
libdnf5.base.GoalAction_REPLAY_REMOVE
libdnf5.base.GoalAction_REPLAY_UPGRADE
libdnf5.base.GoalAction_RESET
libdnf5.base.GoalAction_RESOLVE
libdnf5.base.GoalAction_REVERT_COMPS_UPGRADE
libdnf5.base.GoalAction_UPGRADE
libdnf5.base.GoalAction_UPGRADE_ALL
libdnf5.base.GoalAction_UPGRADE_ALL_MINIMAL
libdnf5.base.GoalAction_UPGRADE_MINIMAL
class libdnf5.base.GoalJobSettings(*args)

Configure SPEC resolving. Important for queries that resolve SPEC.

get_advisory_filter()
get_best()
get_clean_requirements_on_remove()
get_environment_no_groups()
get_from_repo_ids()
get_group_no_packages()
get_group_package_types()
get_ignore_extras()
get_ignore_installed()
get_override_reasons()
get_report_hint()
get_skip_broken()
get_skip_unavailable()
get_to_repo_ids()
get_used_best()

Return used value for best

get_used_clean_requirements_on_remove()

Return used value for clean_requirements_on_remove

get_used_skip_broken()

Return used value for skip_broken

get_used_skip_unavailable()

Return used value for skip_unavailable

set_advisory_filter(filter)

Optionally set AdvisoryQuery that is used to filter packages (used for upgrade). Upgrades considers only packages that resolve some advisory in specified AdvisoryQuery.

By default is is empty and no packages are filtered.

set_best(best)

Try the best available package versions in transactions.

By default the value is taken from best configuration option.

set_clean_requirements_on_remove(clean_requirements_on_remove)

Remove dependencies that are no longer used during dnf remove.

By default the value is false except for remove action which defaults to value from clean_requirements_on_remove configuration option.

set_environment_no_groups(environment_no_groups)

If set to true, environments operations (install / remove / upgrade) will only work with the environment itself, but will not add to any groups to the transaction.

Default: false

set_from_repo_ids(from_repo_ids)

Not implemented yet

set_group_no_packages(group_no_packages)

If set to true, group operations (install / remove / upgrade) will only work with the group itself, but will not add to the transaction any packages.

Default: false

set_group_package_types(type)

Which types of group packages are going to be installed with the group.

Default is taken from ConfigMain.group_package_types

set_ignore_extras(ignore_extras)

If set to true, after resolving serialized, reverted or redo transactions don’t check for extra packages pulled into the transaction.

Default: false

set_ignore_installed(ignore_installed)

If set to true, after resolving serialized, reverted or redo transactions don’t check for installed packages matching those in the transactions.

Default: false

set_override_reasons(override_reasons)

If set to true, after resolving serialized, reverted or redo transactions override reasons of already installed packages. This option only has an effect if ignore_installed is set otherwise the transaction fails when it contains already installed packages.

Default: false

set_report_hint(report_hint)

Set whether to report packages providing alternatives (alternative-for(..) provide) and packages with different letter capitalization when no matches are found.

Default: true

set_skip_broken(skip_broken)

Resolve any dependency problems by removing packages that are causing problems from the transaction.

By default the value is taken from skip_broken configuration option.

set_skip_unavailable(skip_unavailable)

Allow skipping packages that are unavailable.

By default the value is taken from a configuration option skip_unavailable except for remove action which defaults to true.

set_to_repo_ids(to_repo_ids)

Limit available packages to specified repositories.

Empty by default.

thisown
libdnf5.base.GoalProblem_ALREADY_INSTALLED
libdnf5.base.GoalProblem_EXCLUDED
libdnf5.base.GoalProblem_EXCLUDED_VERSIONLOCK
libdnf5.base.GoalProblem_EXTRA

Error when transaction contains additional unexpected elements. Used when replaying transactions.

libdnf5.base.GoalProblem_HINT_ALTERNATIVES
libdnf5.base.GoalProblem_HINT_ICASE
libdnf5.base.GoalProblem_INSTALLED_IN_DIFFERENT_VERSION
libdnf5.base.GoalProblem_INSTALLED_LOWEST_VERSION
libdnf5.base.GoalProblem_MALFORMED
libdnf5.base.GoalProblem_MERGE_ERROR
libdnf5.base.GoalProblem_MODULE_CANNOT_SWITH_STREAMS
libdnf5.base.GoalProblem_MODULE_SOLVER_ERROR

Error detected during resolvement of module dependencies

libdnf5.base.GoalProblem_MODULE_SOLVER_ERROR_DEFAULTS

Error in module defaults detected during resolvement of module dependencies

libdnf5.base.GoalProblem_MODULE_SOLVER_ERROR_LATEST

Problem with latest modules during resolvement of module dependencies

libdnf5.base.GoalProblem_MULTIPLE_STREAMS
libdnf5.base.GoalProblem_NOT_AVAILABLE
libdnf5.base.GoalProblem_NOT_FOUND
libdnf5.base.GoalProblem_NOT_FOUND_DEBUGINFO
libdnf5.base.GoalProblem_NOT_FOUND_DEBUGSOURCE
libdnf5.base.GoalProblem_NOT_FOUND_IN_REPOSITORIES
libdnf5.base.GoalProblem_NOT_INSTALLED
libdnf5.base.GoalProblem_NOT_INSTALLED_FOR_ARCHITECTURE
libdnf5.base.GoalProblem_NO_PROBLEM
libdnf5.base.GoalProblem_ONLY_SRC
libdnf5.base.GoalProblem_SOLVER_ERROR
libdnf5.base.GoalProblem_SOLVER_PROBLEM_STRICT_RESOLVEMENT
libdnf5.base.GoalProblem_UNSUPPORTED_ACTION
libdnf5.base.GoalProblem_WRITE_DEBUG
libdnf5.base.GoalSetting_AUTO
libdnf5.base.GoalSetting_SET_FALSE
libdnf5.base.GoalSetting_SET_TRUE
libdnf5.base.GoalUsedSetting_UNUSED
libdnf5.base.GoalUsedSetting_USED_FALSE
libdnf5.base.GoalUsedSetting_USED_TRUE
class libdnf5.base.LogEvent(*args)

Contain information, hint, or a problem created during libdnf5::Goal::resolve()

get_action()
Return type:

int

Returns:

GoalAction for which goal event was created

get_additional_data()
Return type:

std::set< std::string,std::less< std::string >,std::allocator< std::string > >

Returns:

Additional information (internal), that are required for formatted string

get_job_settings()
Return type:

GoalJobSettings

Returns:

GoalJobSetting if it is relevant for the particular GoalProblem

get_problem()
Return type:

int

Returns:

GoalProblem that specify the type of report

get_solver_problems()
Return type:

SolverProblems

Returns:

SolverProblems if they are relevant for the particular GoalProblem

get_spec()
Return type:

string

Returns:

SPEC if it is relevant for the particular GoalProblem

thisown
to_string()

Convert an element from resolve log to string;

libdnf5.base.ProblemRules_RULE_BEST_1
libdnf5.base.ProblemRules_RULE_BEST_2
libdnf5.base.ProblemRules_RULE_DISTUPGRADE
libdnf5.base.ProblemRules_RULE_INFARCH
libdnf5.base.ProblemRules_RULE_JOB
libdnf5.base.ProblemRules_RULE_JOB_NOTHING_PROVIDES_DEP
libdnf5.base.ProblemRules_RULE_JOB_PROVIDED_BY_SYSTEM
libdnf5.base.ProblemRules_RULE_JOB_UNKNOWN_PACKAGE
libdnf5.base.ProblemRules_RULE_JOB_UNSUPPORTED
libdnf5.base.ProblemRules_RULE_MODULE_BEST_1
libdnf5.base.ProblemRules_RULE_MODULE_BEST_2
libdnf5.base.ProblemRules_RULE_MODULE_DISTUPGRADE
libdnf5.base.ProblemRules_RULE_MODULE_INFARCH
libdnf5.base.ProblemRules_RULE_MODULE_JOB
libdnf5.base.ProblemRules_RULE_MODULE_JOB_NOTHING_PROVIDES_DEP
libdnf5.base.ProblemRules_RULE_MODULE_JOB_PROVIDED_BY_SYSTEM
libdnf5.base.ProblemRules_RULE_MODULE_JOB_UNKNOWN_PACKAGE
libdnf5.base.ProblemRules_RULE_MODULE_JOB_UNSUPPORTED
libdnf5.base.ProblemRules_RULE_MODULE_PKG
libdnf5.base.ProblemRules_RULE_MODULE_PKG_CONFLICTS
libdnf5.base.ProblemRules_RULE_MODULE_PKG_IMPLICIT_OBSOLETES
libdnf5.base.ProblemRules_RULE_MODULE_PKG_INSTALLED_OBSOLETES
libdnf5.base.ProblemRules_RULE_MODULE_PKG_NOTHING_PROVIDES_DEP
libdnf5.base.ProblemRules_RULE_MODULE_PKG_NOT_INSTALLABLE_1
libdnf5.base.ProblemRules_RULE_MODULE_PKG_NOT_INSTALLABLE_2
libdnf5.base.ProblemRules_RULE_MODULE_PKG_NOT_INSTALLABLE_3
libdnf5.base.ProblemRules_RULE_MODULE_PKG_NOT_INSTALLABLE_4
libdnf5.base.ProblemRules_RULE_MODULE_PKG_OBSOLETES
libdnf5.base.ProblemRules_RULE_MODULE_PKG_REQUIRES
libdnf5.base.ProblemRules_RULE_MODULE_PKG_SAME_NAME
libdnf5.base.ProblemRules_RULE_MODULE_PKG_SELF_CONFLICT
libdnf5.base.ProblemRules_RULE_MODULE_UNKNOWN
libdnf5.base.ProblemRules_RULE_MODULE_UPDATE
libdnf5.base.ProblemRules_RULE_MODULE_YUMOBS
libdnf5.base.ProblemRules_RULE_PKG
libdnf5.base.ProblemRules_RULE_PKG_CONFLICTS
libdnf5.base.ProblemRules_RULE_PKG_IMPLICIT_OBSOLETES
libdnf5.base.ProblemRules_RULE_PKG_INSTALLED_CONFLICTS
libdnf5.base.ProblemRules_RULE_PKG_INSTALLED_OBSOLETES
libdnf5.base.ProblemRules_RULE_PKG_INSTALLED_REQUIRES
libdnf5.base.ProblemRules_RULE_PKG_NOTHING_PROVIDES_DEP
libdnf5.base.ProblemRules_RULE_PKG_NOT_INSTALLABLE_1
libdnf5.base.ProblemRules_RULE_PKG_NOT_INSTALLABLE_2
libdnf5.base.ProblemRules_RULE_PKG_NOT_INSTALLABLE_3
libdnf5.base.ProblemRules_RULE_PKG_NOT_INSTALLABLE_4
libdnf5.base.ProblemRules_RULE_PKG_OBSOLETES
libdnf5.base.ProblemRules_RULE_PKG_REMOVAL_OF_PROTECTED
libdnf5.base.ProblemRules_RULE_PKG_REMOVAL_OF_RUNNING_KERNEL
libdnf5.base.ProblemRules_RULE_PKG_REQUIRES
libdnf5.base.ProblemRules_RULE_PKG_SAME_NAME
libdnf5.base.ProblemRules_RULE_PKG_SELF_CONFLICT
libdnf5.base.ProblemRules_RULE_UNKNOWN
libdnf5.base.ProblemRules_RULE_UPDATE
libdnf5.base.ProblemRules_RULE_YUMOBS
class libdnf5.base.ResolveSpecSettings(*args)

Configure SPEC resolving. Important for queries that resolve SPEC.

get_expand_globs()
get_group_search_environments()
get_group_search_groups()
get_group_with_id()
get_group_with_name()
get_ignore_case()
get_nevra_forms()
get_with_binaries()
get_with_filenames()
get_with_nevra()
get_with_provides()
set_expand_globs(expand_globs)

Set whether to expand globs in package specs using fnmatch

Default: true

set_group_search_environments(search_environments)

Configure whether to search in environments when matching SPEC in group ids or names.

Default: true

set_group_search_groups(search_groups)

Configure whether to search in groups when matching SPEC in group ids or names. Historically group SPEC could also mean an environment. These flags configure in which entities the spec is searched for.

Default: true

set_group_with_id(group_with_id)

Set whether groups’ ids should be considered during group SPEC matching

Default: true

set_group_with_name(group_with_name)

Set whether groups’ names should be considered during group SPEC matching

Default: false

set_ignore_case(ignore_case)

Set whether to match case-insensitively

Default: false

set_nevra_forms(nevra_forms)

When matching packages’ nevras is enabled specify allowed nevra forms.

The default can be obtained from libdnf5::rpm::Nevra::get_default_pkg_spec_forms().

set_with_binaries(with_binaries)

Set whether package’s binaries should be considered during SPEC matching It will check whether SPEC is a binary -> /usr/(s)bin/<SPEC>

Default: true

set_with_filenames(with_filenames)

Set whether package’s files should be considered during SPEC matching It will check if SPEC starts with “/” or “*/” and if it matches any file in a package

Default: true

set_with_nevra(with_nevra)

Set whether packages’ nevras should be considered during SPEC matching

Default: true

set_with_provides(with_provides)

Set whether packages’ provides should be considered during SPEC matching

Default: true

thisown
class libdnf5.base.SolverProblems(*args)

Represent problems detected by a RPM solver (libsolv)

get_problems()

Provide information about package solver problems in a vector. Each problem can be transformed to string by package_solver_problem_to_string or all problems to a string by all_package_solver_problems_to_string().

Return type:

std::vector< std::vector< std::pair< libdnf5::ProblemRules,std::vector< std::string,std::allocator< std::string > > >,std::allocator< std::pair< libdnf5::ProblemRules,std::vector< std::string,std::allocator< std::string > > > > >,std::allocator< std::vector< std::pair< libdnf5::ProblemRules,std::vector< std::string,std::allocator< std::string > > >,std::allocator< std::pair< libdnf5::ProblemRules,std::vector< std::string,std::allocator< std::string > > > > > > >

Returns:

Vector of problems encountered by the solver. Each problem is described by a vector of “rule breakages” (TODO(lukash) try to find a better name for this) stored in a std::pair<libdnf5::ProblemRules, std::vector<std::string>>, where the first of the pair is a rule breakage identifier and the second is a list of string identifiers which are the subjects of the rule breakage. These can be rendered into a string by the problem_to_string() method.

static problem_to_string(raw)

Convert particular package solver problem to a string;

thisown
to_string()

Convert SolverProblems class to string representative;

class libdnf5.base.SwigPyIterator(*args, **kwargs)
advance(n)
copy()
decr(n=1)
distance(x)
equal(x)
incr(n=1)
next()
previous()
thisown
value()
class libdnf5.base.Transaction(*args)
TransactionRunResult_ERROR_CHECK
TransactionRunResult_ERROR_GPG_CHECK
TransactionRunResult_ERROR_LOCK
TransactionRunResult_ERROR_RERUN
TransactionRunResult_ERROR_RESOLVE
TransactionRunResult_ERROR_RPM_RUN
TransactionRunResult_SUCCESS
check_gpg_signatures()

Check signatures of packages in the resolved transaction.

Return type:

boolean

Returns:

True if all packages have correct signatures or checking is turned off with pkg_gpgcheck option, otherwise false. More info about occurred problems can be retrieved using the get_gpg_signature_problems method.

download()

Download all inbound packages (packages that are being installed on the system). Fails immediately on the first package download failure. Will try to resume downloads of any partially-downloaded RPMs.

The destination directory for downloaded RPMs is taken from the destdir configuration option. If it’s not specified, the standard location of repo cachedir/packages is used.

empty()
Return type:

boolean

Returns:

true if the transaction is empty.

get_broken_dependency_packages()
Return type:

std::vector< libdnf5::rpm::Package,std::allocator< libdnf5::rpm::Package > >

Returns:

list of packages skipped due to broken dependencies

get_conflicting_packages()
Return type:

std::vector< libdnf5::rpm::Package,std::allocator< libdnf5::rpm::Package > >

Returns:

list of packages skipped due to conflicts

get_download_local_pkgs()
get_gpg_signature_problems()

Retrieve a list of the problems that occurred during check_gpg_signatures procedure.

get_last_script_output()

Retrieve output of the last executed rpm scriptlet.

get_problems()

Return basic overview about result of resolving transaction. To get complete information, use get_resolve_logs().

get_resolve_logs()

Returns information about resolvement of Goal. :rtype: std::vector< libdnf5::base::LogEvent,std::allocator< libdnf5::base::LogEvent > > :return: A vector of LogEvent instances.

get_resolve_logs_as_strings()

Returns information about resolvement of Goal as a list of printable messages :rtype: std::vector< std::string,std::allocator< std::string > > :return: A vector of string representations of problems.

get_rpm_messages()

Retrieve captured RPM log messages

get_transaction_environments()
Return type:

std::vector< libdnf5::base::TransactionEnvironment,std::allocator< libdnf5::base::TransactionEnvironment > >

Returns:

environmental groups that are part of the transaction.

get_transaction_groups()
Return type:

std::vector< libdnf5::base::TransactionGroup,std::allocator< libdnf5::base::TransactionGroup > >

Returns:

the transaction groups.

get_transaction_modules()
Return type:

std::vector< libdnf5::base::TransactionModule,std::allocator< libdnf5::base::TransactionModule > >

Returns:

the transaction modules.

get_transaction_packages()
Return type:

std::vector< libdnf5::base::TransactionPackage,std::allocator< libdnf5::base::TransactionPackage > >

Returns:

the transaction packages.

get_transaction_packages_count()
Return type:

std::size_t

Returns:

the number of transaction packages.

get_transaction_problems()

Retrieve list of problems that occurred during transaction run attempt

run()

Prepare, check and run the transaction.

All the transaction metadata that was set (description, user_id or comment) is stored in the history database.

To watch progress or trigger actions during specific transactions events, setup the callbacks object.

After a successful transaction, any temporarily downloaded packages are removed if the ‘keepcache’ option is set to ‘false’ and the transaction involved an inbound action. Otherwise, the packages are preserved on the disk.

Return type:

int

Returns:

An enum describing the result of running the transaction.

serialize(*args)

Warning: This method is experimental/unstable and should not be relied on. It may be removed without warning Serialize the transaction into a json data format which can be later loaded into a libdnf5::Goal and replayed. If packages_path is provided it is assumed all packages in this transaction are present there and the serialized transaction contains paths those packages. The same applies for comps paths (they can be stored using the store_comps method).

set_callbacks(callbacks)

Setup callbacks to be called during rpm transaction. :type callbacks: std::unique_ptr< libdnf5::rpm::TransactionCallbacks > :param callbacks: Implemented callbacks object.

set_comment(comment)

Setup a comment to store in the history database along with the transaction. :type comment: string :param comment: Any string value.

set_description(description)

Setup a description of the transaction. :type description: string :param description: Value could be the console command for CLI or verbose description for API usage.

set_download_local_pkgs(value)

Set whether local packages should be copied to the destination directory during the download().

Default: false

set_user_id(user_id)

Setup the id of the user that started the transaction. If not set, current login user UID is used. :type user_id: int :param user_id: UID value.

store_comps(comps_path)

Warning: This method is experimental/unstable and should not be relied on. It may be removed without warning Store each group and environment in this transaction as a separate xml file in the specified path.

test()

Check the transaction by running it with RPMTRANS_FLAG_TEST. The import of any necessary public keys will be requested, and transaction checks will be performed, but no changes to the installed package set will be made. These checks are performed automatically by run(); it is redundant to call test() before calling run(). :rtype: int :return: An enum describing the result of the transaction

thisown
static transaction_result_to_string(result)

Return string representation of the TransactionRunResult enum

class libdnf5.base.TransactionEnvironment(*args)
get_action()
Return type:

int

Returns:

the action being performed on the transaction environment.

get_environment()
Return type:

Environment

Returns:

the underlying environment.

get_reason()
Return type:

int

Returns:

the reason of the action being performed on the transaction environment.

get_state()
Return type:

int

Returns:

the state of the environment in the transaction.

get_with_optional()
Return type:

boolean

Returns:

package types requested to be installed with the group.

thisown
class libdnf5.base.TransactionGroup(*args)
get_action()
Return type:

int

Returns:

the action being performed on the transaction group.

get_group()
Return type:

Group

Returns:

the underlying group.

get_package_types()
Return type:

int

Returns:

package types requested to be installed with the group.

get_reason()
Return type:

int

Returns:

the reason of the action being performed on the transaction group.

get_state()
Return type:

int

Returns:

the state of the group in the transaction.

thisown
class libdnf5.base.TransactionPackage(*args)

Describe transaction operation related to rpm Package

get_action()
Return type:

int

Returns:

the action being performed on the transaction package.

get_package()
Return type:

Package

Returns:

the underlying package.

get_reason()
Return type:

int

Returns:

the reason of the action being performed on the transaction package.

get_reason_change_group_id()

The REASON_CHANGE action requires group id in case the reason is changed to GROUP :rtype: string :return: id of group the package belongs to

get_replaced_by()
Return type:

std::vector< libdnf5::rpm::Package,std::allocator< libdnf5::rpm::Package > >

Returns:

packages that replace this transaction package (for transaction packages that are leaving the system).

get_replaces()
Return type:

std::vector< libdnf5::rpm::Package,std::allocator< libdnf5::rpm::Package > >

Returns:

packages replaced by this transaction package.

get_state()
Return type:

int

Returns:

the state of the package in the transaction.

thisown
class libdnf5.base.VarsWeakPtr(*args)

WeakPtr is a “smart” pointer. It contains a pointer to resource and to guard of resource. WeakPtr pointer can be owner of the resource. However, the resource itself may depend on another resource. WeakPtr registers/unregisters itself at the guard of resource. And the resource guard invalidates the registered WeakPtrs when the resource is unusable (eg. its dependecny was released). Note on thread safety: It is safe to create, access and destroy WeakPtrs in multiple threads simultaneously.

contains(name)

Checks if there is an variable with name equivalent to name in the container.

Parameters:

name (string) – Name of the variable

Return type:

boolean

Returns:

true if there is such an element, otherwise false

detect_release(base, install_root_path)
get()

Returns a pointer to the managed object. Generates exception if object is not valid.

get_value(name)

Get value of particular variable.

Parameters:

name (string) – Name of the variable

get_variables()
has_same_guard(other)

Checks if the other WeakPtr instance has the same WeakPtrGuard.

is_read_only(name)

Checks whether a variable is read-only

Parameters:

name (string) – Name of the variable

Return type:

boolean

Returns:

true if the variable is read-only, false if it is writable

is_valid()

Checks if managed object is valid.

set(*args)

Set particular variable to a value

Parameters:
  • name (string) – Name of the variable

  • value (string) – Value to be stored in variable

  • prio (int, optional) – Source/Priority of the value

Raises:

ReadOnlyVariableError if the variable is read-only

substitute(text)

Substitute DNF vars in the input text.

Parameters:

text (string) – The text for substitution

Return type:

string

Returns:

The substituted text

thisown
unset(*args)

Unset particular variable

Parameters:
  • name (string) – Name of the variable

  • prio (int, optional) – Source/Priority of the request

Raises:

ReadOnlyVariableError if the variable is read-only

Return type:

boolean

Returns:

false if the variable exists after the function returns (insufficient request priority)

class libdnf5.base.VectorBaseTransactionEnvironment(*args)
append(x)
assign(n, x)
back()
begin()
capacity()
clear()
empty()
end()
erase(*args)
front()
get_allocator()
insert(*args)
iterator()
pop()
pop_back()
push_back(x)
rbegin()
rend()
reserve(n)
size()
swap(v)
thisown
class libdnf5.base.VectorBaseTransactionGroup(*args)
append(x)
assign(n, x)
back()
begin()
capacity()
clear()
empty()
end()
erase(*args)
front()
get_allocator()
insert(*args)
iterator()
pop()
pop_back()
push_back(x)
rbegin()
rend()
reserve(n)
size()
swap(v)
thisown
class libdnf5.base.VectorBaseTransactionPackage(*args)
append(x)
assign(n, x)
back()
begin()
capacity()
clear()
empty()
end()
erase(*args)
front()
get_allocator()
insert(*args)
iterator()
pop()
pop_back()
push_back(x)
rbegin()
rend()
reserve(n)
size()
swap(v)
thisown
class libdnf5.base.VectorLogEvent(*args)
append(x)
assign(n, x)
back()
begin()
capacity()
clear()
empty()
end()
erase(*args)
front()
get_allocator()
insert(*args)
iterator()
pop()
pop_back()
push_back(x)
rbegin()
rend()
reserve(n)
size()
swap(v)
thisown
class libdnf5.base.VectorPluginInfo(*args)
append(x)
assign(n, x)
back()
begin()
capacity()
clear()
empty()
end()
erase(*args)
front()
get_allocator()
iterator()
rbegin()
rend()
size()
swap(v)
thisown
libdnf5.base.goal_action_is_replay(action)

Check whether the action is a replay action

libdnf5.base.goal_action_to_string(action)

Convert GoalAction enum to user-readable string