]> git.lizzy.rs Git - plan9front.git/blob - sys/man/1/pkg
pkg(1): add man page
[plan9front.git] / sys / man / 1 / pkg
1 .TH PKG 1
2 .SH NAME
3 create, install, list, local, remove \- trivial package management
4 .SH SYNOPSIS
5 .B pkg/create
6 .I name
7 .br
8 .B pkg/install
9 .I name
10 .br
11 .B pkg/list
12 .br
13 .B pkg/local
14 .br
15 .B pkg/remove
16 .I name
17 .SH DESCRIPTION
18 .I Pkg 
19 is a simple package management system primarily written in
20 .IR rc (1).
21 It can be used to create, install, and remove software packages
22 from an arbitrary package repository, indicated by the environment
23 variable
24 .I $pkgpath.
25 If
26 .I $pkgpath
27 is not set, the system defaults to a hardcoded repository of approved
28 packages.
29 .TP
30 .I Pkg/create 
31 Create builds a new package
32 .IR name ,
33 then packs it into a
34 .IR bzip2 (1)
35 compressed
36 .IR tar(1)
37 archive suitable for upload to a package
38 repository.
39 .TP
40 .I Pkg/install 
41 Install the package
42 .I name
43 from the current repository.
44 .TP
45 .I Pkg/list
46 List packages available from the current repository.
47 .TP
48 .I Pkg/local
49 List locally installed packages.
50 .TP
51 .I Pkg/remove
52 Remove the package
53 .I name
54 from the local system.
55 .SH EXAMPLES
56 .LP
57 Install the
58 .B Go
59 programming language.
60 .sp 1
61 .EX
62 % pkg/install go-2011.05.10
63 .EE
64 .SH FILES
65 .TF /sys/lib/pkg/*
66 .TP
67 .B /sys/lib/pkg/*
68 hash files of packages installed locally.
69 .SH SOURCE
70 .B /sys/src/cmd/pkg/create
71 .br
72 .B /sys/src/cmd/pkg/install
73 .br
74 .B /sys/src/cmd/pkg/list
75 .br
76 .B /sys/src/cmd/pkg/local
77 .br
78 .B /sys/src/cmd/pkg/remove
79 .br
80 .B /sys/src/cmd/pkg/unpkg.c
81 .SH SEE ALSO
82 .IR contrib (1)