Richard Hughes | 27 Nov 15:55 2015

PackageKit 1.0.11 released!

Version 1.0.11
Released: 2015-11-27

 - By popular demand, reintroduce the UpgradeSystem method (Richard Hughes)

 - aptcc: Compile with APT 1.1 (Matthias Klumpp)
 - aptcc: Create really random temporary directories (Matthias Klumpp)
 - aptcc: Ensure proxy and frontend-socket aren't used if they are
NULL (Matthias Klumpp)
 - aptcc: Fix comment spelling mistakes (Robert Ancell)
 - aptcc: Fix formatting and kill some old cruft (Matthias Klumpp)
 - aptcc: Fix several compiler warnings (Matthias Klumpp)
 - aptcc: Make use of the new APT-internal method for fetching
changelogs (Matthias Klumpp)
 - aptcc: Remove dead code and make source filenames consistent
(Matthias Klumpp)
 - alpm: Make pk_alpm_pkg_build_list() more resiliant to failure
(Richard Hughes)
 - dummy: Implement simulating UpgradeSystem and respect the
transaction flags (Richard Hughes)
 - hif: Add support for HTTP proxy (Marek Marczykowski-Górecki)
 - hif: Improve RefreshCache progress updates (Kalev Lember)
 - portage: add helper to change portage settings (Gilles Dartiguelongue)
 - portage: cosmetics (Gilles Dartiguelongue)
 - portage: do not redefine builtin license (Gilles Dartiguelongue)
 - portage: do not refetch package listing for no reason (Gilles Dartiguelongue)
 - portage: drop unused imports (Gilles Dartiguelongue)
(Continue reading)

郭云鹤 | 16 Oct 12:47 2015

One-click installation from XML file

Hi, I am developing a web service that provides free software package information. Since it is a web application, users cannot install the software. I think the "Install" button can be a download link to a special XML, which can be read by native package manager to install the package.

Can PackageKit have a feature to read '*.pkx' files:


openSUSE has implemented such a function to its YaST tool.


郭云鹤(Guo Yunhe)
PackageKit mailing list
PackageKit <at>
Marek Marczykowski-Górecki | 22 Sep 17:30 2015

Proxy setting for hif backend (Fedora 21, Fedora 22)


How can I set HTTP proxy to be used by packagekit on Fedora? When the
backend was yum (Fedora 20), it just worked when set in yum
configuration (/etc/yum.conf). With change to backend hif (dnf, hawkey,
whatever the name is) it doesn't work anymore. I've tried:
 - setting proxy in dnf.conf (which works just fine for manual dnf
 - setting http_proxy env before calling pkcon
 - setting ProxyHTTP in PackageKit.conf
 - calling org.freedesktop.Packagekit.SetProxy manually
Nothing from the above list works. Packagekit still tries to access
repositories directly (which fails because in this environment the only
internet access is through http proxy).


Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
PackageKit mailing list
PackageKit <at>
Arindam Choudhury | 22 Sep 17:13 2015

How to use RequireRestart


I am trying to create a python script which will check if the system requires a restart due to packages update.

I found the RequireRestart class.

But I am unable to use it properly.

I tried

but I am getting a blank list back. How should I do it? Is it possible to get RequireRestart or UpdateDetail from TransactionPast?

Arindam Choudhury

PackageKit mailing list
PackageKit <at>
Richard Hughes | 21 Sep 12:41 2015

PackageKit 1.0.10 released!

Version 1.0.10
Released: 2015-09-21

 - Process the offline update triggered by older PK versions (Kalev Lember)
 - Use Glib for reading symlink to prevent crash with some compilers
(Kalev Lember)

Tarballs available here:

PackageKit mailing list
PackageKit <at>
Richard Hughes | 15 Sep 11:40 2015

PackageKit 1.0.9 released!

Version 1.0.9
Released: 2015-09-15

 - aptcc: Don't assume time_t is same as long (Adam Borowski)

New Features:
 - Support g_autoptr() for all packagekit-glib2 object types (Kalev Lember)

 - Check the offline action trigger before performing the update
(Richard Hughes)
 - Fix two critical warnings (Richard Hughes)
 - Sdd PackageKitGlib-1.0.metadata to release tarball (Christian Hesse)
 - Fix a race with the backend job thread creation (Kalev Lember)

Tarballs available here:

PackageKit mailing list
PackageKit <at>
Richard Hughes | 19 Aug 16:22 2015

PackageKit 1.0.8 released!

Version 1.0.8
Released: 2015-08-19

 - hif: Record the UID of the session user in the yumdb (Richard Hughes)
 - urpmi: Add support for FILTER_ARCH (Thierry Vignaud)
 - urpmi: Enable newer filters by default (Thierry Vignaud)
 - urpmi: Implement install_files (Thierry Vignaud)
 - urpmi: Other distros have synced their urpm API with mga (Thierry Vignaud)
 - urpmi: Support the NOT filter variants too (Thierry Vignaud)
 - yum: Add support for GetDetailsLocal (Richard Hughes)
 - yum: Record the UID of the session user in the yumdb (Richard Hughes)

New Features:
 - Generate Vala bindings (Robert Ancell)

 - Correctly register enum properties (Robert Ancell)
 - Exit quietly if we didn't prepare the offline update (Will Woods)
 - Fix various docstring errors in the library (Robert Ancell)
 - Look for libsystemd now that journal/login are merged (Matthias Klumpp)

Tarballs available here:

PackageKit mailing list
PackageKit <at>
Patrick Schleizer | 7 Aug 01:18 2015

Debian apt-get 'all upgrades installed' hook?


Would it be possible to use packagekit to provide an 'all upgrades
installed' hook?

In other words, can packagekit notice and react if a user has
successfully 'apt-get dist-upgrade'ed? I.e. when no more upgrades are
available for installation?

Or to accomplish that, would one have to run all "apt-get update" and
upgrades "apt-get dist-upgrade" through packagekit?

PackageKit mailing list
PackageKit <at>
Richard Hughes | 13 Jul 13:43 2015

PackageKit 1.0.7 released!

Version 1.0.7
Released: 2015-07-13

 - alpm: Set install reason to explicitly installed (Christian Hesse)
 - entropy: Fixed remove_package and search_details (skullbocks)
 - entropy: Removed messages and fixing remove function (skullbocks)
 - hif: Add missing locking when accessing sack cache (Kalev Lember)
 - hif: Improve depsolving for parallel kernel installs (Kalev Lember)
 - hif: Include any packages marked for installation when doing
upgrades (Kalev Lember)
 - portage: Removed messages and fixing remove function (skullbocks)
 - python/backend: Fixing parameter order (skullbocks)
 - urpm: Properly use is_package_installed() (Thierry Vignaud)
 - yum: Fix backtrace when getting the update details (Richard Hughes)
 - yum: Fix up two almost impossible-to-hit python warnings (Richard Hughes)
 - yum: Forward port to the new WhatProvides API (Richard Hughes)
 - yum: Return installed packages first with NEWEST filter (Kalev Lember)
 - yum: Update comps groups code for internal Details API change (Kalev Lember)

New Features:
 - Define command_not_found_handler for zsh (Will Thompson)

 - Correct punctuation while applying offline updates (Matthew Miller)
 - Don't run if bash command completion is being run (Ville Skyttä)
 - Fix Details() from spawned backends (Richard Hughes)
 - Port GTK+ module to org.freedesktop.PackageKit.Modify2 (Matthias Clasen)
 - Return the correct error for syntax errors in pkcon (Richard Hughes)
 - Return the correct error if nothing was done for repo-enable (Richard Hughes)

Tarballs available here:

PackageKit mailing list
PackageKit <at>
Mário Costa | 8 May 16:39 2015

Packagekit DBus interface definitions


I’m writing a packagekit frontend in java, using dbus-java-bin from ubuntu.

I'm having some trouble to generate the java stubs, via
CreateInterface utility, and using the files:

The utility complains about the the doc:doc tags, and I cant find the
xml interface description files, for those interfaces above.

Could any of you, point-me if, and what tool you're using to strip the
<doc:*> tags from the descriptions files, in order to export to the
dbus introspection  !?

Mario Costa
PackageKit mailing list
PackageKit <at>
Richard Hughes | 7 Apr 13:31 2015

PackageKit 1.0.6 released!

Version 1.0.6
Released: 2015-04-07

 - alpm: do not mix declarations and code (which ISO C90 forbids)
(Christian Hesse)
 - alpm: move configured global field into backend priv (Fabien Bourigault)
 - alpm: move disabled global field into backend priv (Fabien Bourigault)
 - alpm: reinitialize libalpm when localdb changed (Fabien Bourigault)
 - alpm: remove RepoEnable (Fabien Bourigault)
 - alpm: remove no longer used disabled repos logic (Fabien Bourigault)
 - alpm: remove unused variable (Christian Hesse)
 - hif: Fix use-after-free during untrusted repo check (Kalev Lember)

New Features:
 - Add dbus method for returning prepared packages (petervo)
 - Add pk_backend_is_transaction_inhibited (Fabien Bourigault)
 - gstreamer plugin: Add support for v2 of the PK session service
interface (Kalev Lember)

 - Don't recursive lock the debug mutex when using --verbose without a
tty (Richard Hughes)
 - Make "reboot" the default action for no action file (Stephen Gallagher)
 - gstreamer plugin: Adapt to gstreamer missing plugin changes (Kalev Lember)
 - gstreamer plugin: Avoid criticals when some of the parameters are
NULL (Kalev Lember)

Tarballs available here:

PackageKit mailing list
PackageKit <at>