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
|
1999-08-28 01:35:59 +00:00
|
|
|
.\" $FreeBSD$
|
1993-08-26 01:19:55 +00:00
|
|
|
.\"
|
1994-12-06 00:51:50 +00:00
|
|
|
.Dd November 25, 1994
|
1999-08-15 08:47:11 +00:00
|
|
|
.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
|
2000-07-07 13:06:32 +00:00
|
|
|
.Op Fl cdDfikrRpLsqImv
|
1994-12-06 00:51:50 +00:00
|
|
|
.Op Fl e Ar package
|
|
|
|
.Op Fl l Ar prefix
|
2000-01-07 13:25:53 +00:00
|
|
|
.Op Fl t Ar template
|
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
|
1999-09-01 10:04:47 +00:00
|
|
|
files with the
|
1996-02-12 04:57:03 +00:00
|
|
|
.Xr pkg_create 1
|
1999-09-01 10:04:47 +00:00
|
|
|
command or already installed on the system
|
|
|
|
with the
|
|
|
|
.Xr pkg_add 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
|
1999-09-01 10:04:47 +00:00
|
|
|
Be
|
|
|
|
.Dq 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.
|
1998-07-06 04:39:20 +00:00
|
|
|
.It Fl I
|
|
|
|
Show an index line for each package. This option takes
|
|
|
|
precedence over all other package formatting options.
|
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.
|
1998-07-06 04:39:20 +00:00
|
|
|
.It Fl R
|
|
|
|
Show the list of installed packages which require 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.
|
2000-07-07 13:06:32 +00:00
|
|
|
.It Fl s
|
|
|
|
Show the total size occuped by files installed within each package.
|
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
|
1999-09-01 10:04:47 +00:00
|
|
|
when creating a
|
|
|
|
.Dq staging area .
|
1994-12-06 00:51:50 +00:00
|
|
|
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> .
|
1998-06-26 07:15:38 +00:00
|
|
|
.Sh ENVIRONMENT
|
|
|
|
.Ev PKG_TMPDIR
|
|
|
|
points to the directory where
|
|
|
|
.Nm
|
|
|
|
creates its temporary files.
|
|
|
|
If this variable is not set,
|
|
|
|
.Ev TMPDIR
|
|
|
|
is used. If both are unset, the builtin defaults are used.
|
|
|
|
.Pp
|
|
|
|
.Ev PKG_DBDIR
|
1998-12-31 20:28:55 +00:00
|
|
|
specifies an alternative location for the installed package database.
|
1998-06-26 07:15:38 +00:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /var/db/pkg -compact
|
|
|
|
.It Pa /var/tmp
|
|
|
|
Used if the environment variables
|
|
|
|
.Ev PKG_TMPDIR
|
|
|
|
and
|
|
|
|
.Ev TMPDIR
|
|
|
|
are not set, or if the directories named have insufficient space.
|
|
|
|
.It Pa /tmp
|
|
|
|
The next choice if
|
|
|
|
.Pa /var/tmp
|
|
|
|
does not exist or has insufficient space.
|
|
|
|
.It Pa /usr/tmp
|
|
|
|
The last choice if
|
|
|
|
.Pa /tmp
|
|
|
|
is unsuitable.
|
|
|
|
.It Pa /var/db/pkg
|
|
|
|
Default location of the installed package database.
|
|
|
|
.El
|
1994-12-06 00:51:50 +00:00
|
|
|
.Sh SEE ALSO
|
1996-02-12 04:57:03 +00:00
|
|
|
.Xr pkg_add 1 ,
|
|
|
|
.Xr pkg_create 1 ,
|
|
|
|
.Xr pkg_delete 1 ,
|
2000-02-29 15:13:55 +00:00
|
|
|
.Xr pkg_version 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.
|