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.
Constructors
pk_client_new
PkClient is a nice GObject wrapper for PackageKit and makes writing
frontends easy.
since: 0.5.2
Instance methods
pk_client_adopt_async
Adopt a transaction which allows the caller to monitor the state or cancel it.
since: 0.5.2
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_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_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_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_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_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_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_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_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
Properties
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
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: GObjectClassNo 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.