Class

PackageKitClient

Description [src]

class PackageKit.Client : GObject.Object
{
  PkClientPrivate* priv
}

For creating new transactions

A GObject to use for accessing PackageKit asynchronously. If you’re using PkClient to install, remove, or update packages, be prepared that the eula, gpg and trusted callbacks need to be rescheduled manually, as in https://packagekit.freedesktop.org/doc/concepts.html#transactions.

Ancestors

Descendants

Constructors

pk_client_new

PkClient is a nice GObject wrapper for PackageKit and makes writing frontends easy.

since: 0.5.2

Functions

pk_client_create_helper_argv_envp
No description available.

Instance methods

pk_client_accept_eula

We may want to agree to a EULA dialog if one is presented.

since: 0.5.3

pk_client_accept_eula_async

We may want to agree to a EULA dialog if one is presented.

since: 0.5.2

pk_client_adopt

Adopt a transaction.

since: 0.5.3

pk_client_adopt_async

Adopt a transaction which allows the caller to monitor the state or cancel it.

since: 0.5.2

pk_client_depends_on

Get the packages that depend this one, i.e. child.parent.

since: 0.5.3

pk_client_depends_on_async

Get the packages that depend this one, i.e. child->parent.

since: 0.5.2

pk_client_download_packages

Downloads package files to a specified location.

since: 0.5.3

pk_client_download_packages_async

Downloads package files to a specified location.

since: 0.5.2

pk_client_generic_finish

Gets the result from the asynchronous function.

since: 0.5.2

pk_client_get_background

Gets the background value.

since: 0.6.10

pk_client_get_cache_age

Gets the maximum cache age value.

since: 0.6.10

pk_client_get_details

Get details of a package, so more information can be obtained for GUI or command line tools.

since: 0.5.3

pk_client_get_details_async

Get details of a package, so more information can be obtained for GUI or command line tools.

since: 0.5.2

pk_client_get_details_local

Get details of a local package, so more information can be obtained for GUI or command line tools.

since: 0.8.17

pk_client_get_details_local_async

Get details of a package, so more information can be obtained for GUI or command line tools.

since: 0.8.17

pk_client_get_distro_upgrades

This method should return a list of distribution upgrades that are available. It should not return updates, only major upgrades.

since: 0.5.3

pk_client_get_distro_upgrades_async

This method should return a list of distribution upgrades that are available. It should not return updates, only major upgrades.

since: 0.5.2

pk_client_get_files

Get the file list (i.e. a list of files installed) for the specified package.

since: 0.5.3

pk_client_get_files_async

Get the file list (i.e. a list of files installed) for the specified package.

since: 0.5.2

pk_client_get_files_local

Get file list of a local package, so more information can be obtained for GUI or command line tools.

since: 0.9.1

pk_client_get_files_local_async

Get file list of a package, so more information can be obtained for GUI or command line tools.

since: 0.9.1

pk_client_get_idle

Gets if the transaction client idle value.

since: 0.6.10

pk_client_get_interactive

Gets the client interactive value.

since: 0.6.10

pk_client_get_locale

Gets the locale used for this transaction.

since: 0.6.10

pk_client_get_old_transactions

Get the old transaction list, mainly used for the transaction viewer.

since: 0.5.3

pk_client_get_old_transactions_async

Get the old transaction list, mainly used for the transaction viewer.

since: 0.5.2

pk_client_get_packages

Get the list of packages from the backend.

since: 0.5.3

pk_client_get_packages_async

Get the list of packages from the backend.

since: 0.5.2

pk_client_get_progress

Get the progress of a transaction.

since: 0.5.3

pk_client_get_progress_async

Find the current state of a transaction.

since: 0.5.2

pk_client_get_progress_finish

Gets the result from the asynchronous function.

since: 0.5.2

pk_client_get_repo_list

Get the list of repositories installed on the system.

since: 0.5.3

pk_client_get_repo_list_async

Get the list of repositories installed on the system.

since: 0.5.2

pk_client_get_update_detail

Get details about the specific update, for instance any CVE urls and severity information.

since: 0.5.3

pk_client_get_update_detail_async

Get details about the specific update, for instance any CVE urls and severity information.

since: 0.5.2

pk_client_get_updates

Get a list of all the packages that can be updated for all repositories.

since: 0.5.3

pk_client_get_updates_async

Get a list of all the packages that can be updated for all repositories.

since: 0.5.2

pk_client_install_files

Install a file locally, and get the deps from the repositories. This is useful for double clicking on a .rpm or .deb file.

since: 0.8.1

pk_client_install_files_async

Install a file locally, and get the deps from the repositories. This is useful for double clicking on a .rpm or .deb file.

since: 0.8.1

pk_client_install_packages

Install a package of the newest and most correct version.

since: 0.8.1

pk_client_install_packages_async

Install a package of the newest and most correct version.

since: 0.8.1

pk_client_install_signature

Install a software repository signature of the newest and most correct version.

since: 0.5.3

pk_client_install_signature_async

Install a software repository signature of the newest and most correct version.

since: 0.5.2

pk_client_refresh_cache

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.

since: 0.5.3

pk_client_refresh_cache_async

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.

since: 0.5.2

pk_client_remove_packages

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.

since: 0.8.1

pk_client_remove_packages_async

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.

since: 0.8.1

pk_client_repair_system

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.

since: 0.8.1

pk_client_repair_system_async

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.

since: 0.8.1

pk_client_repo_enable

Enable or disable the repository.

since: 0.5.3

pk_client_repo_enable_async

Enable or disable the repository.

since: 0.5.2

pk_client_repo_remove

Removes a repo and optionally the packages installed from it.

since: 0.9.1

pk_client_repo_remove_async

Removes a repo and optionally the packages installed from it.

since: 0.9.1

pk_client_repo_set_data

We may want to set a repository parameter. NOTE: this is free text, and is left to the backend to define a format.

since: 0.5.3

pk_client_repo_set_data_async

We may want to set a repository parameter. NOTE: this is free text, and is left to the backend to define a format.

since: 0.5.2

pk_client_required_by

Get the packages that require this one, i.e. parent.child.

since: 0.5.3

pk_client_required_by_async

Get the packages that require this one, i.e. parent->child.

since: 0.5.2

pk_client_resolve

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.

since: 0.5.3

pk_client_resolve_async

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.

since: 0.5.2

pk_client_search_details

Search all detailed summary information to try and find a keyword. Think of this as pk_client_search_names(), but trying much harder and taking longer.

since: 0.5.5

pk_client_search_details_async

Search all detailed summary information to try and find a keyword. Think of this as pk_client_search_names(), but trying much harder and taking longer.

since: 0.5.5

pk_client_search_files

Search for packages that provide a specific file.

since: 0.5.5

pk_client_search_files_async

Search for packages that provide a specific file.

since: 0.5.5

pk_client_search_groups

Return all packages in a specific group.

since: 0.5.5

pk_client_search_groups_async

Return all packages in a specific group.

since: 0.5.5

pk_client_search_names

Search all the locally installed files and remote repositories for a package that matches a specific name.

since: 0.5.5

pk_client_search_names_async

Search all the locally installed files and remote repositories for a package that matches a specific name.

since: 0.5.5

pk_client_set_background

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.

since: 0.6.10

pk_client_set_cache_age

Sets the maximum cache age value for the client.

since: 0.6.10

pk_client_set_interactive

Sets the interactive value for the client. Interactive transactions are usually allowed to ask the user questions.

since: 0.6.10

pk_client_set_locale

Sets the locale to be used for the client. This may affect returned results.

since: 0.6.10

pk_client_update_packages

Update specific packages to the newest available versions.

since: 0.8.1

pk_client_update_packages_async

Update specific packages to the newest available versions.

since: 0.8.1

pk_client_upgrade_system

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.

since: 1.0.10

pk_client_upgrade_system_async

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.

since: 1.0.10

pk_client_what_provides

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.

since: 0.5.3

pk_client_what_provides_async

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.

since: 0.5.2

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

PackageKit.Client:background
No description available.

since: 0.5.3

PackageKit.Client:cache-age

The cache age in seconds, where G_MAXUINT means cache “never expires”.

since: 0.6.10

PackageKit.Client:idle

Whether there are transactions in progress on this client or not.

since: 0.5.4

PackageKit.Client:interactive
No description available.

since: 0.5.4

PackageKit.Client:locale
No description available.

since: 0.5.3

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct PackageKitClientClass {
  GObjectClass parent_class;
  void (* changed) (
    PkClient* client
  );
  void (* _pk_reserved1) (
void
  );
  void (* _pk_reserved2) (
void
  );
  void (* _pk_reserved3) (
void
  );
  void (* _pk_reserved4) (
void
  );
  void (* _pk_reserved5) (
void
  );
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.

changed: void (* changed) ( PkClient* client )

No description available.

_pk_reserved1: void (* _pk_reserved1) ( void )

No description available.

_pk_reserved2: void (* _pk_reserved2) ( void )

No description available.

_pk_reserved3: void (* _pk_reserved3) ( void )

No description available.

_pk_reserved4: void (* _pk_reserved4) ( void )

No description available.

_pk_reserved5: void (* _pk_reserved5) ( void )

No description available.

Virtual methods

PackageKit.ClientClass.changed
No description available.