Introduction tutorial to Yellow Yeti Pkg, a fast, portable and inobtrusive package manager

Adrien Nader


1  Installation

1.1  Dependencies

Currently, yypkg depends on:

1.2  Windows

It is advised to build under windows with the ’preprocessed_src’ folder and the ’’ script (chmod +x it).

Support for windows is a bit "dirty". That doesn’t mean it’s bad, it only means that fileutils and sexplib have to be put in $(ocamlc -where) and lablgtk2 in $(ocamlc -where)/lablgtk.
Also, findlib is not supported (the usual ’make’ should work if you have everything setup, including camlp4, of course).

2  YYPREFIX and -prefix

Since yypkg works in its own prefix, you need to tell it its value. This can be done in two ways: the YYPREFIX environment variable, or the -prefix switch to command-line arguments. It is advised to use YYPREFIX.

With most shells, run: export YYPREFIX=/path/to/your/prefix. The path can be absolute or relative.

On windows, in cmd.exe, run: set YYPREFIX=C:/path/to/your/prefix. Both forward and backward slashes work. You can also set it globally in System Properties.

From now on, we assume that you’ve set YYPREFIX.

3  Initialisation

3.1  -init

First, run yypkg -init. This will install some files, mostly create default settings and an empty package database.

On windows, it will also copy binaries to sbin/ so these can always be found (wget, bsdtar, liblzma...).

~/yypkg % export YYPREFIX=$(pwd)/prefix
~/yypkg % ./src/yypkg.native -init
~/yypkg % find prefix \! -type d | xargs ls -lh         
-rw-r--r-- 1 tux users 134 Dec 26 22:17 prefix/etc/yypkg.d/sherpa.conf
-rw-r--r-- 1 tux users  12 Dec 26 22:17 prefix/etc/yypkg.d/yypkg.conf
-rw-r--r-- 1 tux users   2 Dec 26 22:17 prefix/var/log/packages/yypkg_db

4  Command-line tools: yypkg and sherpa

These tools are not described in this document: see the ’USAGE’ file:;a=blob;f=USAGE" .

This document was translated from LATEX by HEVEA.