Linux.com

PiSi Packaging

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.

 

Comments

Subscribe to Comments Feed

Upcoming Linux Foundation Courses

  1. LFS201 Essentials of System Administration
    12 Jan » 30 Mar - Online Self-Paced
    Details
  2. LFD320 Linux Kernel Internals and Debugging
    13 Jul » 17 Jul - North Reading - MA + Virtual (GUARANTEED TO RUN)
    Details
  3. LFS426 Linux Performance Tuning
    13 Jul » 16 Jul - Virtual (Guaranteed to Run)
    Details

View All Upcoming Courses

Become an Individual Member
Check out the Friday Funnies

Sign Up For the Linux.com Newsletter


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board