pm

A pack manager
git clone git://iotek.org/pm
Log | Files | Refs | README

pack.5 (1292B)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.Dd 2016-01-13
.Dt PACK 5
.Os POSIX.1-2008
.Sh NAME
.Nm pack
.Nd pack file format
.Sh DESCRIPTION
.Nm
is the name given to compressed archives used by
.Xr pm 1
to install softwares under a directory.
.Ss FILENAME
The pack name is used to extract informations about it content, and should
follow a strict naming scheme:
.Pa <name>#<version>.tar.bz2
.Ss ARCHIVE FORMAT
A pack is a
.Em bzip2
compressed
.Em tar file
containing all the files and sub directories meant to be extracted under the
.Ev $ROOT
directory (See
.Xr pm 1 ) .
For example:
.Bd -literal -offset indent
bin/
bin/pm
share/
share/man/
share/man/man1/
share/man/man1/pm.1
share/man/man5/
share/man/man5/pack.5
.Ed
.Sh USAGE
In order to create a pack suitable for use with
.Xr pm 1 ,
you can use external tools to first install your pack into a specific
directory, change to this directory and archive its content. The typical
workflow to create packs would be the following:
.Bd -literal -offset indent
make
make DESTDIR=/tmp/rootfs install
cd /tmp/rootfs
tar -c $(ls -1) | bzip2 > /tmp/pm#0.0.tar.bz2
.Ed
.Pp
You can check the content of this pack with:
.Bd -literal -offset indent
bzip2 -cd < /tmp/pm#0.0.tar.bz2 | tar -t
.Ed
.Sh SEE ALSO
.Xr bzip2 1 ,
.Xr pm 1 ,
.Xr tar 1
.Sh AUTHORS
.An Willy Goiffon Aq Mt willy@mailoo.org