2011-05-15 20:42:06 -07:00
|
|
|
.TH PKG 1
|
|
|
|
.SH NAME
|
|
|
|
create, install, list, local, remove \- trivial package management
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B pkg/create
|
|
|
|
.I name
|
|
|
|
.br
|
|
|
|
.B pkg/install
|
|
|
|
.I name
|
|
|
|
.br
|
|
|
|
.B pkg/list
|
|
|
|
.br
|
|
|
|
.B pkg/local
|
|
|
|
.br
|
|
|
|
.B pkg/remove
|
|
|
|
.I name
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.I Pkg
|
|
|
|
is a simple package management system primarily written in
|
|
|
|
.IR rc (1).
|
|
|
|
It can be used to create, install, and remove software packages
|
|
|
|
from an arbitrary package repository, indicated by the environment
|
|
|
|
variable
|
|
|
|
.I $pkgpath.
|
|
|
|
If
|
|
|
|
.I $pkgpath
|
|
|
|
is not set, the system defaults to a hardcoded repository of approved
|
|
|
|
packages.
|
|
|
|
.TP
|
|
|
|
.I Pkg/create
|
|
|
|
Create builds a new package
|
|
|
|
.IR name ,
|
2011-05-23 14:32:09 -07:00
|
|
|
whose source is found in directory
|
|
|
|
.IR name ,
|
2011-05-15 20:42:06 -07:00
|
|
|
then packs it into a
|
2011-08-26 02:27:38 -07:00
|
|
|
.I bzip2 (see
|
|
|
|
.IR gzip (1))
|
2011-05-15 20:42:06 -07:00
|
|
|
compressed
|
2011-06-04 01:23:20 -07:00
|
|
|
.IR tar (1)
|
2011-05-15 20:42:06 -07:00
|
|
|
archive suitable for upload to a package
|
2011-09-21 15:39:16 -07:00
|
|
|
repository. The source directory should be provided as a full path.
|
2011-05-15 20:42:06 -07:00
|
|
|
.TP
|
|
|
|
.I Pkg/install
|
|
|
|
Install the package
|
|
|
|
.I name
|
2012-01-03 18:14:27 -08:00
|
|
|
from the current repository, unpacking the executables in
|
|
|
|
.B /$cputype/bin/
|
|
|
|
or
|
|
|
|
.B /rc/bin/
|
|
|
|
and the source in
|
|
|
|
.B /sys/src/pkg/.
|
2011-05-15 20:42:06 -07:00
|
|
|
.TP
|
|
|
|
.I Pkg/list
|
|
|
|
List packages available from the current repository.
|
|
|
|
.TP
|
|
|
|
.I Pkg/local
|
|
|
|
List locally installed packages.
|
|
|
|
.TP
|
|
|
|
.I Pkg/remove
|
|
|
|
Remove the package
|
|
|
|
.I name
|
|
|
|
from the local system.
|
|
|
|
.SH EXAMPLES
|
2011-05-23 14:32:09 -07:00
|
|
|
.LP
|
|
|
|
Create the package
|
2011-09-21 15:39:16 -07:00
|
|
|
.B irc7-2011.09.21:
|
2011-05-23 14:32:09 -07:00
|
|
|
.sp 1
|
|
|
|
.EX
|
2011-09-21 15:07:49 -07:00
|
|
|
% pkg/create /sys/src/cmd/irc7-2011.09.21
|
2011-05-23 14:32:09 -07:00
|
|
|
.EE
|
|
|
|
|
2011-05-15 20:42:06 -07:00
|
|
|
.LP
|
|
|
|
Install the
|
|
|
|
.B Go
|
2011-09-21 15:39:16 -07:00
|
|
|
programming language:
|
2011-05-15 20:42:06 -07:00
|
|
|
.sp 1
|
|
|
|
.EX
|
|
|
|
% pkg/install go-2011.05.10
|
|
|
|
.EE
|
|
|
|
.SH FILES
|
2012-01-03 18:19:06 -08:00
|
|
|
.TF
|
2011-05-15 20:42:06 -07:00
|
|
|
.TP
|
|
|
|
.B /sys/lib/pkg/*
|
|
|
|
hash files of packages installed locally.
|
2012-01-03 18:19:06 -08:00
|
|
|
.TP
|
|
|
|
.B /sys/src/pkg/*
|
|
|
|
source files of packages installed locally.
|
2011-05-15 20:42:06 -07:00
|
|
|
.SH SOURCE
|
|
|
|
.B /sys/src/cmd/pkg/create
|
|
|
|
.br
|
|
|
|
.B /sys/src/cmd/pkg/install
|
|
|
|
.br
|
|
|
|
.B /sys/src/cmd/pkg/list
|
|
|
|
.br
|
|
|
|
.B /sys/src/cmd/pkg/local
|
|
|
|
.br
|
|
|
|
.B /sys/src/cmd/pkg/remove
|
|
|
|
.br
|
|
|
|
.B /sys/src/cmd/pkg/unpkg.c
|
2012-01-05 09:02:24 -08:00
|
|
|
.SH REPOSITORIES
|
|
|
|
.B http://pkg.violetti.org/386
|
|
|
|
.br
|
|
|
|
.B http://plan9.stanleylieber.com/pkg/386
|
2011-05-15 20:42:06 -07:00
|
|
|
.SH SEE ALSO
|
|
|
|
.IR contrib (1)
|