1993-08-26 01:19:55 +00:00
|
|
|
.\"
|
2001-02-09 07:54:59 +00:00
|
|
|
.\" FreeBSD install - a package for the installation and maintenance
|
1993-08-26 01:19:55 +00:00
|
|
|
.\" 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
|
|
|
.\"
|
2001-02-09 07:54:59 +00:00
|
|
|
.Dd February 8, 2001
|
1999-08-15 08:47:11 +00:00
|
|
|
.Dt PKG_INFO 1
|
2001-07-10 15:12:08 +00:00
|
|
|
.Os
|
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
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2003-03-25 01:22:42 +00:00
|
|
|
.Op Fl bcdDfgGiIkLmopPqQrRsvVx
|
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
|
2004-03-30 20:48:16 +00:00
|
|
|
.Fl a | Ar pkg-name ...
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2004-03-30 20:48:16 +00:00
|
|
|
.Op Fl qQ
|
2002-05-05 13:44:32 +00:00
|
|
|
.Fl W Ar filename
|
|
|
|
.Nm
|
2004-03-30 20:48:16 +00:00
|
|
|
.Op Fl qQ
|
2002-05-05 13:44:32 +00:00
|
|
|
.Fl O Ar origin
|
|
|
|
.Nm
|
1994-12-06 00:51:50 +00:00
|
|
|
.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
|
2001-02-09 07:54:59 +00:00
|
|
|
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.
|
2003-03-25 01:22:42 +00:00
|
|
|
.It Fl b
|
|
|
|
Use the BLOCKSIZE environment variable for output even when the
|
|
|
|
.Fl q
|
|
|
|
or
|
|
|
|
.Fl Q
|
|
|
|
flag is present.
|
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).
|
2003-03-25 00:51:41 +00:00
|
|
|
.It Fl Q
|
|
|
|
Be
|
|
|
|
.Dq quiet
|
|
|
|
as above but print preface output with the package name.
|
1994-12-06 00:51:50 +00:00
|
|
|
.It Fl c
|
2001-02-09 07:54:59 +00:00
|
|
|
Show the (one line) comment 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.
|
2001-02-03 20:56:32 +00:00
|
|
|
.It Fl g
|
|
|
|
Show files that don't match the recorded checksum.
|
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
|
2001-07-15 08:06:20 +00:00
|
|
|
Show an index line for each package. This option takes
|
1998-07-06 04:39:20 +00:00
|
|
|
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
|
2000-09-25 10:49:10 +00:00
|
|
|
Show the total size occupied by files installed within each package.
|
2000-10-23 07:01:31 +00:00
|
|
|
.It Fl o
|
|
|
|
Show the
|
|
|
|
.Dq origin
|
|
|
|
path recorded on package generation. This path
|
|
|
|
intended to give an idea as to where the underlying port, from which
|
|
|
|
package was generated, is located in the
|
2000-11-14 11:20:58 +00:00
|
|
|
.Fx
|
|
|
|
.Em "Ports Collection" .
|
2001-02-08 17:44:00 +00:00
|
|
|
.It Fl G
|
|
|
|
Do not try to expand shell glob patterns in the
|
|
|
|
.Ar pkg-name
|
|
|
|
when selecting packages to be displayed (by default
|
|
|
|
.Nm
|
|
|
|
automatically expands shell glob patterns in the
|
2001-02-09 07:54:59 +00:00
|
|
|
.Ar pkg-name ) .
|
2001-03-23 18:45:24 +00:00
|
|
|
.It Fl W
|
|
|
|
For the specified
|
|
|
|
.Ar filename
|
|
|
|
argument show which package it belongs to. If the file is not in the
|
2001-07-15 08:06:20 +00:00
|
|
|
current directory, and does not have an absolute path, then the
|
2001-03-23 18:45:24 +00:00
|
|
|
.Ev PATH
|
|
|
|
is searched using
|
|
|
|
.Xr which 1 .
|
2002-05-04 14:49:49 +00:00
|
|
|
.It Fl O
|
|
|
|
For the specified
|
|
|
|
.Ar origin
|
|
|
|
argument list all packages having this origin.
|
2001-02-08 17:44:00 +00:00
|
|
|
.It Fl x
|
|
|
|
Treat the
|
|
|
|
.Ar pkg-name
|
|
|
|
as a regular expression and display information only for packages
|
|
|
|
whose names match that regular expression. Multiple regular
|
|
|
|
expressions could be provided, in that case
|
|
|
|
.Nm
|
|
|
|
displays information about all packages that match at least one
|
|
|
|
regular expression from the list.
|
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
|
2001-07-15 08:06:20 +00:00
|
|
|
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.
|
2001-02-07 13:45:30 +00:00
|
|
|
.Bd -ragged -offset indent -compact
|
2000-12-27 15:30:30 +00:00
|
|
|
Note: This should really not be necessary with
|
|
|
|
.Nm ,
|
1993-09-05 04:54:24 +00:00
|
|
|
since very little information is extracted from each package
|
2001-07-15 08:06:20 +00:00
|
|
|
and one would have to have a very small
|
1994-12-06 00:51:50 +00:00
|
|
|
.Pa /tmp
|
|
|
|
indeed to overflow it.
|
|
|
|
.Ed
|
2001-10-10 08:21:41 +00:00
|
|
|
.It Fl V
|
|
|
|
Show revision number of the packing list format.
|
2002-09-09 19:43:30 +00:00
|
|
|
.It Fl P
|
|
|
|
Show revision number of package tools.
|
2000-12-27 15:30:30 +00:00
|
|
|
.El
|
1994-12-06 00:51:50 +00:00
|
|
|
.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
|
2001-02-09 07:54:59 +00:00
|
|
|
.Pa /var/db/pkg/ Ns Aq Ar pkg-name .
|
1998-06-26 07:15:38 +00:00
|
|
|
.Sh ENVIRONMENT
|
2003-03-25 01:22:42 +00:00
|
|
|
.Bl -tag -width PKG_TMPDIR
|
|
|
|
.It Ev BLOCKSIZE
|
|
|
|
If the environment variable
|
|
|
|
.Ev BLOCKSIZE
|
|
|
|
is set the block counts will be displayed in units of that
|
|
|
|
size block.
|
|
|
|
.It Ev PKG_TMPDIR
|
|
|
|
Points to the directory where
|
1998-06-26 07:15:38 +00:00
|
|
|
.Nm
|
|
|
|
creates its temporary files.
|
|
|
|
If this variable is not set,
|
|
|
|
.Ev TMPDIR
|
|
|
|
is used. If both are unset, the builtin defaults are used.
|
2003-03-25 01:22:42 +00:00
|
|
|
.It Ev PKG_DBDIR
|
|
|
|
Specifies an alternative location for the installed package database.
|
2003-05-18 21:05:22 +00:00
|
|
|
.El
|
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
|
2001-07-15 08:06:20 +00:00
|
|
|
and
|
1998-06-26 07:15:38 +00:00
|
|
|
.Ev TMPDIR
|
|
|
|
are not set, or if the directories named have insufficient space.
|
|
|
|
.It Pa /tmp
|
2001-07-15 08:06:20 +00:00
|
|
|
The next choice if
|
1998-06-26 07:15:38 +00:00
|
|
|
.Pa /var/tmp
|
|
|
|
does not exist or has insufficient space.
|
|
|
|
.It Pa /usr/tmp
|
2001-07-15 08:06:20 +00:00
|
|
|
The last choice if
|
|
|
|
.Pa /tmp
|
1998-06-26 07:15:38 +00:00
|
|
|
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
|
2001-02-20 21:57:19 +00:00
|
|
|
.Sh CONTRIBUTORS
|
|
|
|
.An John Kohl Aq jtk@rational.com
|
1994-12-06 00:51:50 +00:00
|
|
|
.Sh BUGS
|
1993-08-26 01:19:55 +00:00
|
|
|
Sure to be some.
|