[packagekit] One-click installation from XML file

Dominique Leuenberger / DimStar dimstar at opensuse.org
Fri Oct 16 05:00:24 PDT 2015


On Fri, 2015-10-16 at 14:54 +0300, 郭云鹤 wrote:
> I found ubuntu has use a special protocol to install package from
> web. The link URL is like "apt://libreoffice,libreoffice-base". https
> ://wiki.debian.org/AptProtocol
> 
> This protocol is more convenient than download a XML file. I think it
> is similar with the browser plugin you mentioned. It does not add
> repositories. And users will be informed what packages they are going
> to install. I think it is safer than let users copy and paste
> commands or download a script without checksum.
> 
> I found in openSUSE and Fedora, PackageKit browser plugin was
> installed by default. But I don't know how to generate a url. Could
> you tell me? Thanks!
Have a look at https://github.com/hughsie/PackageKit/blob/master/contri
b/browser-plugin/README

Using
=====
Add the following code to your web page:
    <object type="application/x-packagekit-plugin" width="300"
height="150">
      <!-- Name that will be used in the user interface -->
      <param name="displayname" value="GNU Backgammon"/>
      <!-- Whitespace separated list of package names -->
      <param name="packagenames" value="gnubg"/>
    </object>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20151016/559ac084/attachment.html>


More information about the PackageKit mailing list