Introduction tutorial to Yellow Yeti Pkg, a fast, portable and inobtrusive package manager
Currently, yypkg depends on:
It is advised to build under windows with the ’preprocessed_src’ folder and the ’BUILDING.windows’ 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).
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.
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
These tools are not described in this document: see the ’USAGE’ file: http://git.ocamlcore.org/cgi-bin/gitweb.cgi?p=yypkg/yypkg.git;a=blob;f=USAGE" .
This document was translated from LATEX by HEVEA.