Please check the status of this specification in Launchpad before editing it. If it is Approved, contact the Assignee or another knowledgeable person before making changes.

Summary

This spec covers the creation of an easy to use tool to create service packs (bundles of packages which may contain updates, new programs, etc.) which require nothing more than the current APT system to install (hence "transparent", since the packs are treated as regular packages).

Rationale

Currently packaged software is either offered in a repository (causing unfamiliar setup for those who are unfamiliar with the concept, plus the need for a working connection to the repository), as individual package files (causing unneeded headaches when installing, especially graphically, as packages must be installed in the correct order, existing packages may get overwritten, etc.) or as a massive package incorporating what should be split into several packages (in an attempt to overcome the previous problem, but introducing new ones like difficulty replacing individual parts). Thus a method of distributing multiple packages, like a local repository, needs to be given an easy installation method, like a single package.

It is often useful to install a defined set of packages on a system, or multiple systems, with or without Internet access. The idea of letting users and developers create Service Packs (UbuntuServicePacks for example), large collections of software installations/updates like those mentioned above, addresses this, but current proposals for implementing such a system (like OfflineUpdateSpec) are limited due to the reliance on a service pack installation tool, and applications like APTonCD offer more complexity than is needed to achieve the goals of this spec (although their underlying infrastructure could be reused). Allowing service packs to be installed with nothing more than the regular APT system (using tools like Gdebi) would instantly make such packs available for all Ubuntu (or Debian-based) users, and potentially other distros, without creating yet another application installation format/method, thus making the system promising to third party vendors who can support many Debian-derived distributions with one easy to install file.

Use Cases

Scope

A new tool will be developed which allows easy creation of service packs.

Design

The tool will let users specify packages for the Service Pack to depend on and easily allow users to create "update" service packs by including all of the packages installed on the system, thus fulfilling Lynn's use case (size can be kept down by specifying a base package to depend on, like ubuntu-desktop, or by depending on a previous update pack). The tool will also allow users to specify packages based on their name or a path to a package file, and find out any other packages needed to get them installed, thus fulfilling Gemma's use case. A meta-package will then be created which depends on everything inside. Finally a 'setup' package is made which handles installing the whole thing. This setup packae is the only part users need to interact with, the rest is stored in a folder called 'data'.

When a user double clicks the setup package the Gdebi tool appears like normal and allows them to install the pack just like any other package, this then sets up the repository and installs the packages inside if they are not already installed/available in a cofigured repository. The setup package is then removed as it is set to conflict with the meta-package. If the service pack meta-package is removed then so is any additional software it installed (the standard behaviour for tools like aptitude, outside the scope of this spec). If any software in the pack is removed then so is the pack, due to dependancy reasons.

Implementation

The tool should probably be made in Python with GTK/QT frontends, since the tool will only be run occasionally, and never as a daemon, thus Python's interpreted nature won't cause any system slowdown. The tool APTonCD, which emerged at around the same time the idea for this spec did, does some of the jobs proposed here, but also does others besides and is complex to use. The underlying code could be used to implement the proposed tool, however, since its capabilities are similar.

I (Warbo) am experimenting with a prototype of this tool. A GUI has been designed and package handling code made, thus showing the idea as feasable. The only outstanding issue is making the setup package set up and install the service pack (the code is written, but doesn't run on package installation), also current methods employed do not exist cross-distro (mainly the use of postpone). This work-in-progress can be downloaded here (this depends on postpone, from here for non-Gutsy users, and reprepro which has been packaged for a while).

Outstanding Issues

Currently the setup package does not set up and install the generated sevice pack. This is due to dpkg lock issues, since the installation scripts inside work properly when run from a terminal. If this issue persists then the setup package could be replaced by a setup script (note that APT is used throughout, this is not yet-another-install-tool, the script would just automate adding a local repository and installing a package).

The code used in the prototype is not very reliable or reusable. The final implementation should be done using code from APTonCD.

BoF agenda and discussion

Warbo: Please add any thoughts on the tool itself, ideas for overcoming the source issue or anything else Smile :)

Warbo: APT-on-CD is now incredibly similar to the Service Pack tool I am making... Perhaps adapting APT-on-CD would be a better course of action?


CategorySpec

TransparentServicePackMaker (last edited 2008-08-06 16:25:14 by localhost)