Home · All Classes · Grouped Classes · Annotated · Functions

SXE - Accessing Qtopia Packages Using PackageManager

This document describes how to access Qtopia packages using the PackageManager service.

Creating a Package Server

To make a package available for download and installation via the PackageManager follow these steps:

  1. Build packages as normal with the make packages command, as described in Compile and Run Example Program
  2. Identify the directory your web server is serving from and create a feed directory there. The feed directory should by owned by the user who will publish packages.

    Note: For a default apache2 installation, content will be served from /srv/www/htdocs.

    You will likely need root privileges to create the feed directory and set the desired ownership. For example:

        sudo mkdir -p /srv/www/htdocs/feed
        sudo chown user.group /srv/www/htdocs/feed

    where user and group are the user name and group name of the user who will publish packages.

  3. Copy all of the package files (package files have a .qpk extension) to a directory. Run the mkPackages script to generate the packages.list file and copy the packages to the feed directory. For example:
        $QPEDIR/bin/mkPackages /srv/www/htdocs/feed
  4. Test that a device can download packages from the package feed. There are two ways to point a device at the package server.
  5. Install packages on the device. When launched, the Software Packages application will connect to package server using HTTP and will download the packages.list file. It will then offer the user any packages that match the hardware architecture and are not already installed.

The packages.list File

The packages.list file is divided into sections - one per available package.

Each section consists of multiple lines containing mandatory properties of a package as shown in the following table:

PropertyDescription
PackageName of the package displayed by the Software Packages application.
FilenameFile name of the package.
SizeSize of the compressed package in bytes.
MD5SumMD5 sum of the package file.
DescriptionPackage information.
MaintainerPerson or company responsible for package maintenance.
LicenseLicense type such as Commercial or GPL.
VersionVersion of the application packaged.
TrustPackages can be trusted or untrusted.
ArchCPU architecture of the device such as arm or i386.
ArchitectureDevice name: for example, Greenphone.
DependsPackage dependencies separated by space: for example, libraries/qtopiabase libraries/qtopia
DomainSXE domains which the package requires to run delimited by comma: for example, window,docapi.
FilesAll files contained in the package separated by space including their default installation paths.
Installed-SizeSize of the package after its decompression and installation.
URLURL of the package file. This is only used in the Qtopia package descriptor files.


Copyright © 2007 Trolltech Trademarks
Qtopia 4.3.0