PiSi Packaging

1238

What is Pisi?

One of the most important tools in Pardus is its packaging system. We call it PiSi (Package Installed Succesfully as Intended). It’s also the name of the package manager. And in Turkish, pisi means kitty (we love cats, yes). If you find a pisi package you can understand that its a zipped file. It contains some files that showing package manager where to install and what files to intall.

$ wget http://paketler.pardus.org.tr/pardus-2009/knazar-1.1-9-2.pisi
$ unzip knazar-1.1-9-2.pisi -d apackage Archive: knazar-1.1-9-2.pisi
inflating: apackage/metadata.xml
inflating: apackage/files.xml
inflating: apackage/install.tar.lzma
$ cd apackage
$ ls files.xml install.tar.lzma metadata.xml

files.xml contains files, their sizes, locations, and all the files’ sha1sums.

metada.xml contains the package’s name and its homepage extension and install.tar.lzma contains the compressed files needed for our install.

How Can We Build a Pisi Package?

To build a pisi package you need at least two files: pspec.xml and actions.py

The xml file contains some nodes about package and packager. Look this example.

The actions.py is the name of the action we take when we are installing our program. The pisi api has many tools to make our install easy, as shown in this example.

You can visit pardus-wiki for information about pisi-api and pisi.