How to use copied and pasted from view-source:https://www.freedesktop.org/software/PackageKit/pk-using.html