pkg_info(1)                 NetBSD Reference Manual                pkg_info(1)

NNAAMMEE
     ppkkgg__iinnffoo - a utility for displaying information on software packages

SSYYNNOOPPSSIISS
     ppkkgg__iinnffoo [--ccddDDiikkrrRRppLLqqIImmvv] [--ee _p_a_c_k_a_g_e] [--ll _p_r_e_f_i_x] _p_k_g_-_n_a_m_e _[_p_k_g_-_n_a_m_e
              _._._._]
     ppkkgg__iinnffoo --aa [_f_l_a_g_s]

DDEESSCCRRIIPPTTIIOONN
     The ppkkgg__iinnffoo command is used to dump out information for packages, either
     packed up in files or already installed on the system with the pkg_cre-
     ate(1) command.

OOPPTTIIOONNSS
     The following command line options are supported:

     _p_k_g_-_n_a_m_e _._._.
             The named packages are described.  A package name may either be
             the name of an installed package, the pathname to a package dis-
             tribution file or a URL to an ftp available package.

     --aa      Show all currently installed packages.

     --vv      Turn on verbose output.

     --pp      Show the installation prefix for each package.

     --qq      Be ``quiet'' in emitting report headers and such, just dump the
             raw info (basically, assume a non-human reading).

     --cc      Show the comment (one liner) field for each package.

     --dd      Show the long description field for each package.

     --DD      Show the install-message file for each package.

     --ff      Show the packing list instructions for each package.

     --ii      Show the install script (if any) for each package.

     --kk      Show the de-install script (if any) for each package.

     --rr      Show the requirements script (if any) for each package.

     --mm      Show the mtree file (if any) for each package.

     --LL      Show the files within each package.  This is different from just
             viewing the packing list, since full pathnames for everything are
             generated.

     --ee _p_k_g_-_n_a_m_e
             If the package identified by _p_k_g_-_n_a_m_e is currently installed, re-
             turn 0, otherwise return 1.  This option allows you to easily
             test for the presence of another (perhaps prerequisite) package
             from a script.

     --ll _s_t_r  Prefix each information category header (see --qq) shown with _s_t_r.
             This is primarily of use to front-end programs who want to re-
             quest a lot of different information fields at once for a pack-
             age, but don't necessary want the output intermingled in such a
             way that they can't organize it.  This lets you add a special to-


             ken to the start of each field.

     --tt _t_e_m_p_l_a_t_e
             Use _t_e_m_p_l_a_t_e as the input to mktemp(3) when creating a ``staging
             area.''  By default, this is the string _/_t_m_p_/_i_n_s_t_m_p_._X_X_X_X_X_X, but
             it may be necessary to override it in the situation where space
             in your _/_t_m_p directory is limited. Be sure to leave some number
             of `X' characters for mktemp(3) to fill in with a unique ID.
                   Note:  This should really not be necessary with pkg_info,
                   since very little information is extracted from each pack-
                   age and one would have to have a very small _/_t_m_p indeed to
                   overflow it.

TTEECCHHNNIICCAALL DDEETTAAIILLSS
     Package info is either extracted from package files named on the command
     line, or from already installed package information in _/_v_a_r_/_d_b_/_p_k_g_/_<_p_k_g_-
     _n_a_m_e_>.

SSEEEE AALLSSOO
     pkg_add(1),  pkg_create(1),  pkg_delete(1),  mktemp(3),  mtree(8).

AAUUTTHHOORRSS
     Jordan Hubbard
             most of the work
     John Kohl
             refined it for NetBSD

BBUUGGSS
     Sure to be some.

 FreeBSD                       November 25, 1994                             2
