Distribution integration

Supported distributions:

If you have already installed a package using your distribution’s installer then Zero install can use that instead of downloading a second copy using Zero Install. It can also use PackageKit to install them, if the user is authorised.

For example, here is what happens if you ask to run AbiWord when you already have the libenchant1 library it requires installed using apt-get:

$ 0launch http://0install.net/2006/autopackage/Abiword.xml

Abiword with native libenchant

If Abiword is itself installed as a distribution package, then the dialog is even simpler, and nothing needs to be downloaded:

Native Abiword

Of course, you are always free to change the selected version from the native package to a Zero Install version. This will also happen automatically if your native version is incompatible with the required version. For example, if you try this on a machine with a very old copy of libenchant1 then Zero Install will download a newer version rather than using that one.

All software installed by Zero Install goes in the cache directory and does not conflict with files installed by the native package manager. If PackageKit is used instead, the user is prompted to confirm, since installing distribution packages can affect the system as a whole. Note that PackageKit can only be used to install packages from the distribution’s repository.

How it works

Two methods are available to integrate Zero Install packages with distribution ones:

  <package-implementation distributions="RPM" package="pkgconfig"/>
  <package-implementation distributions="RPM Debian" package="pkg-config"/>
  <package-implementation distributions="Gentoo" package="dev-util/pkgconfig"/>