1993-08-26 01:19:55 +00:00
|
|
|
.\"
|
|
|
|
.\" FreeBSD install - a package for the installation and maintainance
|
|
|
|
.\" of non-core utilities.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" Jordan K. Hubbard
|
|
|
|
.\"
|
|
|
|
.\"
|
|
|
|
.\" @(#)pkg_info.1
|
|
|
|
.\"
|
1994-12-06 00:51:50 +00:00
|
|
|
.Dd November 25, 1994
|
|
|
|
.Dt pkg_info 1
|
1997-09-27 13:41:35 +00:00
|
|
|
.Os FreeBSD
|
1994-12-06 00:51:50 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm pkg_info
|
1997-10-08 07:48:21 +00:00
|
|
|
.Nd a utility for displaying information on software packages
|
1994-12-06 00:51:50 +00:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm pkg_info
|
|
|
|
.Op Fl cdDikrRpLqImv
|
|
|
|
.Op Fl e Ar package
|
|
|
|
.Op Fl l Ar prefix
|
1995-05-10 23:00:07 +00:00
|
|
|
.Ar pkg-name [pkg-name ...]
|
1994-12-06 00:51:50 +00:00
|
|
|
.Nm pkg_info
|
|
|
|
.Fl a
|
|
|
|
.Op Ar flags
|
|
|
|
.Sh DESCRIPTION
|
1993-08-26 01:19:55 +00:00
|
|
|
The
|
1994-12-06 00:51:50 +00:00
|
|
|
.Nm
|
1993-08-26 01:19:55 +00:00
|
|
|
command is used to dump out information for packages, either packed up in
|
|
|
|
files or already installed on the system
|
|
|
|
with the
|
1996-02-12 04:57:03 +00:00
|
|
|
.Xr pkg_create 1
|
1993-08-26 01:19:55 +00:00
|
|
|
command.
|
1994-12-06 00:51:50 +00:00
|
|
|
.Sh OPTIONS
|
1997-10-08 07:48:21 +00:00
|
|
|
The following command line options are supported:
|
1994-12-06 00:51:50 +00:00
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Ar pkg-name ...
|
1995-05-10 23:00:07 +00:00
|
|
|
The named packages are described. A package name may either be the name of
|
|
|
|
an installed package, the pathname to a package distribution file or a
|
|
|
|
URL to an ftp available package.
|
1994-12-06 00:51:50 +00:00
|
|
|
.It Fl a
|
1993-08-26 01:19:55 +00:00
|
|
|
Show all currently installed packages.
|
1994-12-06 00:51:50 +00:00
|
|
|
.It Fl v
|
1997-10-08 07:48:21 +00:00
|
|
|
Turn on verbose output.
|
1994-12-06 00:51:50 +00:00
|
|
|
.It Fl p
|
1993-08-26 01:19:55 +00:00
|
|
|
Show the installation prefix for each package.
|
1994-12-06 00:51:50 +00:00
|
|
|
.It Fl q
|
|
|
|
Be ``quiet'' in emitting report headers and such, just dump the
|
1993-09-08 01:46:59 +00:00
|
|
|
raw info (basically, assume a non-human reading).
|
1994-12-06 00:51:50 +00:00
|
|
|
.It Fl c
|
1993-08-26 01:19:55 +00:00
|
|
|
Show the comment (one liner) field for each package.
|
1994-12-06 00:51:50 +00:00
|
|
|
.It Fl d
|
1993-08-26 01:19:55 +00:00
|
|
|
Show the long description field for each package.
|
1994-12-06 00:51:50 +00:00
|
|
|
.It Fl D
|
|
|
|
Show the install-message file for each package.
|
|
|
|
.It Fl f
|
1993-09-08 01:46:59 +00:00
|
|
|
Show the packing list instructions for each package.
|
1994-12-06 00:51:50 +00:00
|
|
|
.It Fl i
|
1993-08-26 01:19:55 +00:00
|
|
|
Show the install script (if any) for each package.
|
1994-12-06 00:51:50 +00:00
|
|
|
.It Fl k
|
1993-08-26 01:19:55 +00:00
|
|
|
Show the de-install script (if any) for each package.
|
1994-12-06 00:51:50 +00:00
|
|
|
.It Fl r
|
1993-08-26 01:19:55 +00:00
|
|
|
Show the requirements script (if any) for each package.
|
1994-12-06 00:51:50 +00:00
|
|
|
.It Fl m
|
|
|
|
Show the mtree file (if any) for each package.
|
|
|
|
.It Fl L
|
1993-09-08 01:46:59 +00:00
|
|
|
Show the files within each package. This is different from just
|
|
|
|
viewing the packing list, since full pathnames for everything
|
|
|
|
are generated.
|
1994-12-06 00:51:50 +00:00
|
|
|
.It Fl e Ar pkg-name
|
1993-09-05 22:36:54 +00:00
|
|
|
If the package identified by
|
1994-12-06 00:51:50 +00:00
|
|
|
.Ar pkg-name
|
1993-09-05 22:36:54 +00:00
|
|
|
is currently installed, return 0, otherwise return 1. This option
|
|
|
|
allows you to easily test for the presence of another (perhaps
|
|
|
|
prerequisite) package from a script.
|
1994-12-06 00:51:50 +00:00
|
|
|
.It Fl l Ar str
|
1997-06-19 15:18:34 +00:00
|
|
|
Prefix each information category header (see
|
1994-12-06 00:51:50 +00:00
|
|
|
.Fl q )
|
1993-09-08 01:46:59 +00:00
|
|
|
shown with
|
1994-12-06 00:51:50 +00:00
|
|
|
.Ar str .
|
1993-09-03 23:01:17 +00:00
|
|
|
This is primarily of use to front-end programs who want to request a
|
|
|
|
lot of different information fields at once for a package, but don't
|
|
|
|
necessary want the output intermingled in such a way that they can't
|
|
|
|
organize it. This lets you add a special token to the start of
|
|
|
|
each field.
|
1995-01-05 10:31:42 +00:00
|
|
|
.It Fl t Ar template
|
1993-09-05 04:54:24 +00:00
|
|
|
Use
|
1994-12-06 00:51:50 +00:00
|
|
|
.Ar template
|
|
|
|
as the input to
|
|
|
|
.Xr mktemp 3
|
|
|
|
when creating a ``staging area.''
|
|
|
|
By default, this is the string
|
|
|
|
.Pa /tmp/instmp.XXXXXX ,
|
|
|
|
but it may be necessary to override it in the situation where
|
1993-09-05 04:54:24 +00:00
|
|
|
space in your
|
1994-12-06 00:51:50 +00:00
|
|
|
.Pa /tmp
|
1997-09-27 13:41:35 +00:00
|
|
|
directory is limited. Be sure to leave some number of `X' characters
|
1994-12-06 00:51:50 +00:00
|
|
|
for
|
|
|
|
.Xr mktemp 3
|
|
|
|
to fill in with a unique ID.
|
|
|
|
.Bd -filled -offset indent -compact
|
1993-09-05 04:54:24 +00:00
|
|
|
Note: This should really not be necessary with pkg_info,
|
|
|
|
since very little information is extracted from each package
|
1994-12-06 00:51:50 +00:00
|
|
|
and one would have to have a very small
|
|
|
|
.Pa /tmp
|
|
|
|
indeed to overflow it.
|
|
|
|
.Ed
|
|
|
|
.Sh TECHNICAL DETAILS
|
|
|
|
Package info is either extracted from package files named on the
|
1993-08-26 01:19:55 +00:00
|
|
|
command line, or from already installed package information
|
1994-12-06 00:51:50 +00:00
|
|
|
in
|
|
|
|
.Pa /var/db/pkg/<pkg-name> .
|
|
|
|
.Sh SEE ALSO
|
1996-02-12 04:57:03 +00:00
|
|
|
.Xr pkg_add 1 ,
|
|
|
|
.Xr pkg_create 1 ,
|
|
|
|
.Xr pkg_delete 1 ,
|
1994-12-06 00:51:50 +00:00
|
|
|
.Xr mktemp 3 ,
|
1998-03-23 08:31:20 +00:00
|
|
|
.Xr mtree 8
|
1994-12-06 00:51:50 +00:00
|
|
|
.Sh AUTHORS
|
1998-03-23 08:31:20 +00:00
|
|
|
.An Jordan Hubbard
|
|
|
|
for most of the work.
|
|
|
|
.An John Kohl
|
|
|
|
for NetBSD refinements.
|
1994-12-06 00:51:50 +00:00
|
|
|
.Sh BUGS
|
1993-08-26 01:19:55 +00:00
|
|
|
Sure to be some.
|