PackageKitGlib.Client¶
- Subclasses:
 
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
  | 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
|||
r/w  | 
|||
r/w  | 
|||
r  | 
|||
r/w  | 
|||
r/w  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
||
priv  | 
r  | 
Class Details¶
- class PackageKitGlib.Client(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
- classmethod create_helper_argv_envp(argv, envp_out)¶
 
- classmethod new()¶
 - Returns:
 A new
PackageKitGlib.Clientinstance- Return type:
 
PackageKitGlib.Clientis a niceGObject.Objectwrapper for PackageKit and makes writing frontends easy.New in version 0.5.2.
- accept_eula(eula_id, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 eula_id (
str) – theeula_idwe are agreeing tocancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
We may want to agree to a EULA dialog if one is presented.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- accept_eula_async(eula_id, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 eula_id (
str) – theeula_idwe are agreeing tocancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
We may want to agree to a EULA dialog if one is presented.
New in version 0.5.2.
- adopt(transaction_id, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 transaction_id (
str) – a transaction ID such as “/21_ebcbdaae_data”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Adopt a transaction.
Warning: this function is synchronous, and will block. Do not use it in GUI applications.
New in version 0.5.3.
- adopt_async(transaction_id, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 transaction_id (
str) – a transaction ID such as “/21_ebcbdaae_data”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Adopt a transaction which allows the caller to monitor the state or cancel it.
New in version 0.5.2.
- depends_on(filters, package_ids, recursive, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.GUI|PackageKitGlib.FilterEnum.FREEorPackageKitGlib.FilterEnum.NONEpackage_ids ([
str]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”recursive (
bool) – If we should search recursively for dependscancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Get the packages that depend this one, i.e. child.parent.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- depends_on_async(filters, package_ids, recursive, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.GUI|PackageKitGlib.FilterEnum.FREEorPackageKitGlib.FilterEnum.NONEpackage_ids ([
str]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”recursive (
bool) – If we should search recursively for dependscancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Get the packages that depend this one, i.e. child->parent.
New in version 0.5.2.
- download_packages(package_ids, directory, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 package_ids ([
str]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”directory (
str) – the location where packages are to be downloadedcancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Downloads package files to a specified location.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- download_packages_async(package_ids, directory, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 package_ids ([
str]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”directory (
str) – the location where packages are to be downloadedcancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Downloads package files to a specified location.
New in version 0.5.2.
- generic_finish(res)¶
 - Parameters:
 res (
Gio.AsyncResult) – theGio.AsyncResult- Raises:
 - Returns:
 the
PackageKitGlib.Results, orNone. Free withGObject.Object.unref()- Return type:
 
Gets the result from the asynchronous function.
New in version 0.5.2.
- get_background()¶
 - Returns:
 The background status.
- Return type:
 
Gets the background value.
New in version 0.6.10.
- get_cache_age()¶
 - Returns:
 The cache age in seconds
- Return type:
 
Gets the maximum cache age value.
New in version 0.6.10.
- get_categories(cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Get a list of all categories supported.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- get_categories_async(cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Get a list of all categories supported.
New in version 0.5.2.
- get_details(package_ids, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 package_ids ([
str]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Get details of a package, so more information can be obtained for GUI or command line tools.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- get_details_async(package_ids, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 package_ids ([
str]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Get details of a package, so more information can be obtained for GUI or command line tools.
New in version 0.5.2.
- get_details_local(files, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 files ([
str]) – a null terminated array of filenamescancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Get details of a local package, so more information can be obtained for GUI or command line tools.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.8.17.
- get_details_local_async(files, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 files ([
str]) – a null terminated array of filenamescancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Get details of a package, so more information can be obtained for GUI or command line tools.
New in version 0.8.17.
- get_details_with_deps_size()¶
 - Returns:
 whether the
PackageKitGlib.Client.get_details_async() should include dependencies download sizes for packages, which are not installed.- Return type:
 
Gets the client details-with-deps-size value.
New in version 1.2.7.
- get_distro_upgrades(cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
This method should return a list of distribution upgrades that are available. It should not return updates, only major upgrades.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- get_distro_upgrades_async(cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
This method should return a list of distribution upgrades that are available. It should not return updates, only major upgrades.
New in version 0.5.2.
- get_files(package_ids, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 package_ids ([
str]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Get the file list (i.e. a list of files installed) for the specified package.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- get_files_async(package_ids, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 package_ids ([
str]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Get the file list (i.e. a list of files installed) for the specified package.
New in version 0.5.2.
- get_files_local(files, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 files ([
str]) – a null terminated array of filenamescancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Get file list of a local package, so more information can be obtained for GUI or command line tools.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.9.1.
- get_files_local_async(files, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 files ([
str]) – a null terminated array of filenamescancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Get file list of a package, so more information can be obtained for GUI or command line tools.
New in version 0.9.1.
- get_idle()¶
 - Returns:
 if this client is idle.
- Return type:
 
Gets if the transaction client idle value.
New in version 0.6.10.
- get_interactive()¶
 - Returns:
 if the transaction is due to run interactivly.
- Return type:
 
Gets the client interactive value.
New in version 0.6.10.
- get_locale()¶
 - Returns:
 The locale.
- Return type:
 
Gets the locale used for this transaction.
New in version 0.6.10.
- get_old_transactions(number, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 number (
int) – the number of past transactions to return, or 0 for allcancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Get the old transaction list, mainly used for the transaction viewer.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- get_old_transactions_async(number, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 number (
int) – the number of past transactions to return, or 0 for allcancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Get the old transaction list, mainly used for the transaction viewer.
New in version 0.5.2.
- get_packages(filters, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.GUI|PackageKitGlib.FilterEnum.FREEorPackageKitGlib.FilterEnum.NONEcancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Get the list of packages from the backend
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- get_packages_async(filters, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.GUI|PackageKitGlib.FilterEnum.FREEorPackageKitGlib.FilterEnum.NONEcancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Get the list of packages from the backend
New in version 0.5.2.
- get_progress(transaction_id, cancellable)¶
 - Parameters:
 transaction_id (
str) – The transaction idcancellable (
Gio.CancellableorNone) – aGio.CancellableorNone
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Get the progress of a transaction.
Warning: this function is synchronous, and will block. Do not use it in GUI applications.
New in version 0.5.3.
- get_progress_async(transaction_id, cancellable, callback_ready, *user_data)¶
 - Parameters:
 transaction_id (
str) – a transaction ID such as “/21_ebcbdaae_data”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNonecallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Find the current state of a transaction.
New in version 0.5.2.
- get_progress_finish(res)¶
 - Parameters:
 res (
Gio.AsyncResult) – theGio.AsyncResult- Raises:
 - Returns:
 the
PackageKitGlib.Progress, orNone. Free withGObject.Object.unref()- Return type:
 
Gets the result from the asynchronous function.
New in version 0.5.2.
- get_repo_list(filters, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.DEVELOPMENTorPackageKitGlib.FilterEnum.NONEcancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Get the list of repositories installed on the system.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- get_repo_list_async(filters, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.DEVELOPMENTorPackageKitGlib.FilterEnum.NONEcancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Get the list of repositories installed on the system.
New in version 0.5.2.
- get_update_detail(package_ids, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 package_ids ([
str]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Get details about the specific update, for instance any CVE urls and severity information.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- get_update_detail_async(package_ids, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 package_ids ([
str]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Get details about the specific update, for instance any CVE urls and severity information.
New in version 0.5.2.
- get_updates(filters, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.DEVELOPMENTorPackageKitGlib.FilterEnum.NONEcancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Get a list of all the packages that can be updated for all repositories.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- get_updates_async(filters, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.DEVELOPMENTorPackageKitGlib.FilterEnum.NONEcancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Get a list of all the packages that can be updated for all repositories.
New in version 0.5.2.
- install_files(transaction_flags, files, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 transaction_flags (
int) – a transaction type bitfieldfiles ([
str]) – a file such as “/home/hughsie/Desktop/hal-devel-0.10.0.rpm”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Install a file locally, and get the deps from the repositories. This is useful for double clicking on a .rpm or .deb file.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.8.1.
- install_files_async(transaction_flags, files, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 transaction_flags (
int) – a transaction type bitfieldfiles ([
str]) – a file such as “/home/hughsie/Desktop/hal-devel-0.10.0.rpm”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Install a file locally, and get the deps from the repositories. This is useful for double clicking on a .rpm or .deb file.
New in version 0.8.1.
- install_packages(transaction_flags, package_ids, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 transaction_flags (
int) – a transaction type bitfieldpackage_ids ([
str]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Install a package of the newest and most correct version.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.8.1.
- install_packages_async(transaction_flags, package_ids, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 transaction_flags (
int) – a transaction type bitfieldpackage_ids ([
str]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Install a package of the newest and most correct version.
New in version 0.8.1.
- install_signature(type, key_id, package_id, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 type (
PackageKitGlib.SigTypeEnum) – the signature type, e.g.PackageKitGlib.SigTypeEnum.GPGkey_id (
str) – a key ID such as “0df23df”package_id (
str) – a signature_id structure such as “hal;0.0.1;i386;fedora”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Install a software repository signature of the newest and most correct version.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- install_signature_async(type, key_id, package_id, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 type (
PackageKitGlib.SigTypeEnum) – the signature type, e.g.PackageKitGlib.SigTypeEnum.GPGkey_id (
str) – a key ID such as “0df23df”package_id (
str) – a signature_id structure such as “hal;0.0.1;i386;fedora”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Install a software repository signature of the newest and most correct version.
New in version 0.5.2.
- refresh_cache(force, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 force (
bool) – if we should aggressively drop cachescancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Refresh the cache, i.e. download new metadata from a remote URL so that package lists are up to date. This action may take a few minutes and should be done when the session and system are idle.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- refresh_cache_async(force, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 force (
bool) – if we should aggressively drop cachescancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Refresh the cache, i.e. download new metadata from a remote URL so that package lists are up to date. This action may take a few minutes and should be done when the session and system are idle.
New in version 0.5.2.
- remove_packages(transaction_flags, package_ids, allow_deps, autoremove, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 transaction_flags (
int) – a transaction type bitfieldpackage_ids ([
str]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”allow_deps (
bool) – if other dependent packages are allowed to be removed from the computerautoremove (
bool) – if other packages installed at the same time should be tried to removecancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Remove a package (optionally with dependancies) from the system. If allow_deps is set to
False, and other packages would have to be removed, then the transaction would fail.Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.8.1.
- remove_packages_async(transaction_flags, package_ids, allow_deps, autoremove, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 transaction_flags (
int) – a transaction type bitfieldpackage_ids ([
str]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”allow_deps (
bool) – if other dependent packages are allowed to be removed from the computerautoremove (
bool) – if other packages installed at the same time should be tried to removecancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Remove a package (optionally with dependancies) from the system. If allow_deps is set to
False, and other packages would have to be removed, then the transaction would fail.New in version 0.8.1.
- repair_system(transaction_flags, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 transaction_flags (
int) – if only trusted packages should be installedcancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
This transaction will try to recover from a broken package management system: e.g. the installation of a package with unsatisfied dependencies has been forced by using a low level tool (rpm or dpkg) or the system was shutdown during processing an installation.
The backend will decide what is best to do.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.8.1.
- repair_system_async(transaction_flags, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 transaction_flags (
int) – a transaction type bitfieldcancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
This transaction will try to recover from a broken package management system: e.g. the installation of a package with unsatisfied dependencies has been forced by the user using a low level tool (rpm or dpkg) or the system was shutdown during processing an installation.
The backend will decide what is best to do.
New in version 0.8.1.
- repo_enable(repo_id, enabled, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 repo_id (
str) – a repo_id structure such as “livna-devel”enabled (
bool) – if we should enable the repositorycancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Enable or disable the repository.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- repo_enable_async(repo_id, enabled, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 repo_id (
str) – a repo_id structure such as “livna-devel”enabled (
bool) – if we should enable the repositorycancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Enable or disable the repository.
New in version 0.5.2.
- repo_remove(transaction_flags, repo_id, autoremove, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 transaction_flags (
int) – transaction flagsrepo_id (
str) – a repo_id structure such as “livna-devel”autoremove (
bool) – If packages should be auto-removedcancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Removes a repo and optionally the packages installed from it.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.9.1.
- repo_remove_async(transaction_flags, repo_id, autoremove, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 transaction_flags (
int) – transaction flagsrepo_id (
str) – a repo_id structure such as “livna-devel”autoremove (
bool) – If packages should be auto-removedcancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Removes a repo and optionally the packages installed from it.
New in version 0.9.1.
- repo_set_data(repo_id, parameter, value, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 repo_id (
str) – a repo_id structure such as “livna-devel”parameter (
str) – the parameter to changevalue (
str) – what we should change it tocancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
We may want to set a repository parameter. NOTE: this is free text, and is left to the backend to define a format.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- repo_set_data_async(repo_id, parameter, value, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 repo_id (
str) – a repo_id structure such as “livna-devel”parameter (
str) – the parameter to changevalue (
str) – what we should change it tocancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
We may want to set a repository parameter. NOTE: this is free text, and is left to the backend to define a format.
New in version 0.5.2.
- required_by(filters, package_ids, recursive, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.GUI|PackageKitGlib.FilterEnum.FREEorPackageKitGlib.FilterEnum.NONEpackage_ids ([
str]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”recursive (
bool) – If we should search recursively for requirescancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Get the packages that require this one, i.e. parent.child.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- required_by_async(filters, package_ids, recursive, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.GUI|PackageKitGlib.FilterEnum.FREEorPackageKitGlib.FilterEnum.NONEpackage_ids ([
str]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”recursive (
bool) – If we should search recursively for requirescancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Get the packages that require this one, i.e. parent->child.
New in version 0.5.2.
- resolve(filters, packages, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.GUI|PackageKitGlib.FilterEnum.FREEorPackageKitGlib.FilterEnum.NONEpackages ([
str]) – an array of package names to resolve, e.g. “gnome-system-tools”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Resolve a package name into a package_id. This can return installed and available packages and allows you find out if a package is installed locally or is available in a repository.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- resolve_async(filters, packages, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.GUI|PackageKitGlib.FilterEnum.FREEorPackageKitGlib.FilterEnum.NONEpackages ([
str]) – an array of package names to resolve, e.g. “gnome-system-tools”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Resolve a package name into a package_id. This can return installed and available packages and allows you find out if a package is installed locally or is available in a repository.
New in version 0.5.2.
- search_details(filters, values, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.GUI|PackageKitGlib.FilterEnum.FREEorPackageKitGlib.FilterEnum.NONEvalues ([
str]) – free text to search for, for instance, “power”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Search all detailed summary information to try and find a keyword. Think of this as
PackageKitGlib.Client.search_names(), but trying much harder and taking longer.Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.5.
- search_details_async(filters, values, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.GUI|PackageKitGlib.FilterEnum.FREEorPackageKitGlib.FilterEnum.NONEvalues ([
str]) – free text to search for, for instance, “power”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Search all detailed summary information to try and find a keyword. Think of this as
PackageKitGlib.Client.search_names(), but trying much harder and taking longer.New in version 0.5.5.
- search_files(filters, values, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.GUI|PackageKitGlib.FilterEnum.FREEorPackageKitGlib.FilterEnum.NONEvalues ([
str]) – file to search for, for instance, “/sbin/service”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Search for packages that provide a specific file.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.5.
- search_files_async(filters, values, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.GUI|PackageKitGlib.FilterEnum.FREEorPackageKitGlib.FilterEnum.NONEvalues ([
str]) – file to search for, for instance, “/sbin/service”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Search for packages that provide a specific file.
New in version 0.5.5.
- search_groups(filters, values, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.GUI|PackageKitGlib.FilterEnum.FREEorPackageKitGlib.FilterEnum.NONEvalues ([
str]) – a group enum to search for, for instance, “system-tools”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Return all packages in a specific group.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.5.
- search_groups_async(filters, values, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.GUI|PackageKitGlib.FilterEnum.FREEorPackageKitGlib.FilterEnum.NONEvalues ([
str]) – a group enum to search for, for instance, “system-tools”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Return all packages in a specific group.
New in version 0.5.5.
- search_names(filters, values, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.GUI|PackageKitGlib.FilterEnum.FREEorPackageKitGlib.FilterEnum.NONEvalues ([
str]) – free text to search for, for instance, “power”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Search all the locally installed files and remote repositories for a package that matches a specific name.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.5.
- search_names_async(filters, values, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.GUI|PackageKitGlib.FilterEnum.FREEorPackageKitGlib.FilterEnum.NONEvalues ([
str]) – free text to search for, for instance, “power”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Search all the locally installed files and remote repositories for a package that matches a specific name.
New in version 0.5.5.
- set_background(background)¶
 - Parameters:
 background (
bool) – if the transaction is a background transaction
Sets the background value for the client. A background transaction is usually scheduled at a lower priority and is usually given less network and disk performance.
New in version 0.6.10.
- set_cache_age(cache_age)¶
 - Parameters:
 cache_age (
int) – the cache age to set in seconds, whereGObject.G_MAXUINTmeans cache “never expires”
Sets the maximum cache age value for the client.
New in version 0.6.10.
- set_details_with_deps_size(details_with_deps_size)¶
 - Parameters:
 details_with_deps_size (
bool) – the value to set
Sets whether the
PackageKitGlib.Client.get_details_async() should include dependencies download sizes for packages, which are not installed.New in version 1.2.7.
- set_interactive(interactive)¶
 - Parameters:
 interactive (
bool) – the value to set
Sets the interactive value for the client. Interactive transactions are usually allowed to ask the user questions.
New in version 0.6.10.
- set_locale(locale)¶
 - Parameters:
 locale (
str) – the locale to set, e.g. “en_GB.UTF-8”
Sets the locale to be used for the client. This may affect returned results.
New in version 0.6.10.
- update_packages(transaction_flags, package_ids, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 transaction_flags (
int) – a transaction type bitfieldpackage_ids ([
str]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
Update specific packages to the newest available versions.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.8.1.
- update_packages_async(transaction_flags, package_ids, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 transaction_flags (
int) – a transaction type bitfieldpackage_ids ([
str]) – a null terminated array of package_id structures such as “hal;0.0.1;i386;fedora”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
Update specific packages to the newest available versions.
New in version 0.8.1.
- upgrade_system(transaction_flags, distro_id, upgrade_kind, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 transaction_flags (
int) – transaction flagsdistro_id (
str) – a distro ID such as “fedora-14”upgrade_kind (
PackageKitGlib.UpgradeKindEnum) – aPackageKitGlib.UpgradeKindEnumsuch asPackageKitGlib.UpgradeKindEnum.COMPLETEcancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
This transaction will upgrade the distro to the next version, which may involve just downloading the installer and setting up the boot device, or may involve doing an on-line upgrade.
The backend will decide what is best to do.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 1.0.10.
- upgrade_system_async(transaction_flags, distro_id, upgrade_kind, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 transaction_flags (
int) – a transaction type bitfielddistro_id (
str) – a distro ID such as “fedora-14”upgrade_kind (
PackageKitGlib.UpgradeKindEnum) – aPackageKitGlib.UpgradeKindEnumsuch asPackageKitGlib.UpgradeKindEnum.COMPLETEcancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
This transaction will update the distro to the next version, which may involve just downloading the installer and setting up the boot device, or may involve doing an on-line upgrade.
The backend will decide what is best to do.
New in version 1.0.10.
- what_provides(filters, values, cancellable, progress_callback, *progress_user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.GUI|PackageKitGlib.FilterEnum.FREEorPackageKitGlib.FilterEnum.NONEvalues ([
str]) – a search term such as “sound/mp3”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callback
- Raises:
 - Returns:
 a
PackageKitGlib.Resultsobject, orNonefor error- Return type:
 
This should return packages that provide the supplied attributes. This method is useful for finding out what package(s) provide a modalias or GStreamer codec string.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- what_provides_async(filters, values, cancellable, progress_callback, progress_user_data, callback_ready, *user_data)¶
 - Parameters:
 filters (
int) – a #PkBitfield such asPackageKitGlib.FilterEnum.GUI|PackageKitGlib.FilterEnum.FREEorPackageKitGlib.FilterEnum.NONEvalues ([
str]) – a search term such as “sound/mp3”cancellable (
Gio.CancellableorNone) – aGio.CancellableorNoneprogress_callback (
PackageKitGlib.ProgressCallback) – the function to run when the progress changesprogress_user_data (
objectorNone) – data to pass to progress_callbackcallback_ready (
Gio.AsyncReadyCallbackorNone) – the function to run on completionuser_data (
objectorNone) – the data to pass to callback_ready
This should return packages that provide the supplied attributes. This method is useful for finding out what package(s) provide a modalias or GStreamer codec string.
New in version 0.5.2.
- do_changed() virtual¶
 
Property Details¶
- PackageKitGlib.Client.props.background¶
 - 
New in version 0.5.3.
 
- PackageKitGlib.Client.props.cache_age¶
 - 
The cache age in seconds, where
GObject.G_MAXUINTmeans cache “never expires”New in version 0.6.10.
 
- PackageKitGlib.Client.props.details_with_deps_size¶
 - 
New in version 1.2.7.
 
- PackageKitGlib.Client.props.idle¶
 - 
Whether there are transactions in progress on this client or not
New in version 0.5.4.
 
- PackageKitGlib.Client.props.interactive¶
 - 
New in version 0.5.4.