PKG(1)                                                     PKG(1)

 NAME
      create, install, list, local, remove - trivial package
      management

 SYNOPSIS
      pkg/create name
      pkg/install name
      pkg/list
      pkg/local
      pkg/remove name

 DESCRIPTION
      Pkg is a simple package management system primarily written
      in rc(1). It can be used to create, install, and remove
      software packages from an arbitrary package repository,
      indicated by the environment variable $pkgpath. If $pkgpath
      is not set, the system defaults to a hardcoded repository of
      approved packages.

      Pkg/create
           Create builds a new package name, whose source is found
           in directory name, then packs it into a bzip2 (see
           gzip(1)) compressed tar(1) archive suitable for upload
           to a package repository. The source directory should be
           provided as a full path.

      Pkg/install
           Install the package name from the current repository,
           unpacking the executables in /$cputype/bin/ or /rc/bin/
           and the source in /sys/src/pkg/.

      Pkg/list
           List packages available from the current repository.

      Pkg/local
           List locally installed packages.

      Pkg/remove
           Remove the package name from the local system.

 EXAMPLES
      Create the package irc7-2011.09.21:

      % pkg/create /sys/src/cmd/irc7-2011.09.21

      Install the Go programming language:

      % pkg/install go-2011.05.10

 FILES
      /sys/lib/pkg/*
        hash files of packages installed locally.
      /sys/src/pkg/*
        source files of packages installed locally.

 SOURCE
      /sys/src/cmd/pkg/create
      /sys/src/cmd/pkg/install
      /sys/src/cmd/pkg/list
      /sys/src/cmd/pkg/local
      /sys/src/cmd/pkg/remove
      /sys/src/cmd/pkg/unpkg.c

 REPOSITORIES
      http://r-36.net/pkg/386
      http://plan9.stanleylieber.com/pkg/386

 SEE ALSO
      contrib(1)