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
|
|
|
.\"
|
2008-05-30 14:26:09 +00:00
|
|
|
.Dd May 30, 2008
|
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
|
2008-05-30 14:26:09 +00:00
|
|
|
.Op Fl bcdDEfghGiIjkKLmopPqQrRsvVxX
|
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 ...
|
2004-07-02 23:13:00 +00:00
|
|
|
The named packages are described.
|
|
|
|
A package name may either be the name of
|
1995-05-10 23:00:07 +00:00
|
|
|
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.
|
2004-06-29 18:54:47 +00:00
|
|
|
Package version numbers can also be matched in a relational manner using the
|
2007-03-04 13:30:02 +00:00
|
|
|
.Pa >= , <= , >
|
2004-06-29 18:54:47 +00:00
|
|
|
and
|
2007-03-04 13:30:02 +00:00
|
|
|
.Pa <
|
2004-07-02 23:13:00 +00:00
|
|
|
operators.
|
|
|
|
For example,
|
2007-03-04 13:14:41 +00:00
|
|
|
.Pp
|
2007-03-04 13:30:02 +00:00
|
|
|
.Dl "pkg_info 'portupgrade>=20030723'"
|
2007-03-04 13:14:41 +00:00
|
|
|
.Pp
|
2004-06-29 18:54:47 +00:00
|
|
|
will match versions 20030723 and later of the
|
|
|
|
.Pa portupgrade
|
|
|
|
package.
|
2008-05-30 14:26:09 +00:00
|
|
|
.It Fl a , -all
|
1993-08-26 01:19:55 +00:00
|
|
|
Show all currently installed packages.
|
2008-05-30 14:26:09 +00:00
|
|
|
.It Fl b , -blocksize
|
2007-03-04 13:14:41 +00:00
|
|
|
Use the
|
|
|
|
.Ev BLOCKSIZE
|
|
|
|
environment variable for output even when the
|
2003-03-25 01:22:42 +00:00
|
|
|
.Fl q
|
|
|
|
or
|
|
|
|
.Fl Q
|
|
|
|
flag is present.
|
2008-05-30 14:26:09 +00:00
|
|
|
.It Fl h , -help
|
|
|
|
Print help message.
|
|
|
|
.It Fl v , -verbose
|
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.
|
2008-05-30 14:26:09 +00:00
|
|
|
.It Fl q , -quiet
|
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
|
2005-02-13 22:25:33 +00:00
|
|
|
Show files that do not 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
|
2004-07-02 23:13:00 +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.
|
2004-06-29 18:59:19 +00:00
|
|
|
.It Fl j
|
|
|
|
Show the requirements 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.
|
2008-05-30 14:26:09 +00:00
|
|
|
.It Fl K , -keep
|
2006-01-09 18:27:21 +00:00
|
|
|
Keep any downloaded package in
|
|
|
|
.Ev PKGDIR
|
|
|
|
if it is defined or in current directory by default.
|
1994-12-06 00:51:50 +00:00
|
|
|
.It Fl r
|
2007-03-04 13:14:41 +00:00
|
|
|
For each of the specified packages,
|
|
|
|
show the list of packages on which it depends.
|
1998-07-06 04:39:20 +00:00
|
|
|
.It Fl R
|
2007-03-04 13:14:41 +00:00
|
|
|
For each of the specified packages,
|
|
|
|
show the list of installed packages which require it.
|
1994-12-06 00:51:50 +00:00
|
|
|
.It Fl m
|
2007-03-04 13:14:41 +00:00
|
|
|
Show the
|
|
|
|
.Xr mtree 8
|
|
|
|
file (if any) for each package.
|
1994-12-06 00:51:50 +00:00
|
|
|
.It Fl L
|
2004-07-02 23:13:00 +00:00
|
|
|
Show the files within each package.
|
|
|
|
This is different from just
|
1993-09-08 01:46:59 +00:00
|
|
|
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
|
2004-07-02 23:13:00 +00:00
|
|
|
path recorded on package generation.
|
2007-03-03 03:50:59 +00:00
|
|
|
This path is the directory name in the
|
2000-11-14 11:20:58 +00:00
|
|
|
.Fx
|
2007-03-03 03:50:59 +00:00
|
|
|
.Em "Ports Collection"
|
|
|
|
of the underlying port from which the package was generated.
|
2008-05-30 14:26:09 +00:00
|
|
|
.It Fl G , -no-glob
|
2001-02-08 17:44:00 +00:00
|
|
|
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 ) .
|
2008-05-30 14:26:09 +00:00
|
|
|
.It Fl W , -which Ar filename
|
2001-03-23 18:45:24 +00:00
|
|
|
For the specified
|
|
|
|
.Ar filename
|
2004-07-02 23:13:00 +00:00
|
|
|
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
|
2007-03-04 13:14:41 +00:00
|
|
|
directories specified in the environment variable
|
2001-03-23 18:45:24 +00:00
|
|
|
.Ev PATH
|
2007-03-04 13:14:41 +00:00
|
|
|
are searched using
|
2001-03-23 18:45:24 +00:00
|
|
|
.Xr which 1 .
|
2008-05-30 14:26:09 +00:00
|
|
|
.It Fl O , -origin Ar origin
|
2007-03-04 13:14:41 +00:00
|
|
|
List all packages having the specified
|
|
|
|
.Ar origin .
|
2008-05-30 14:26:09 +00:00
|
|
|
.It Fl x , -regex
|
2001-02-08 17:44:00 +00:00
|
|
|
Treat the
|
|
|
|
.Ar pkg-name
|
|
|
|
as a regular expression and display information only for packages
|
2004-07-02 23:13:00 +00:00
|
|
|
whose names match that regular expression.
|
|
|
|
Multiple regular
|
2001-02-08 17:44:00 +00:00
|
|
|
expressions could be provided, in that case
|
|
|
|
.Nm
|
|
|
|
displays information about all packages that match at least one
|
|
|
|
regular expression from the list.
|
2008-05-30 14:26:09 +00:00
|
|
|
.It Fl X , -extended
|
2004-06-29 18:54:47 +00:00
|
|
|
Like
|
|
|
|
.Fl x ,
|
|
|
|
but treats the
|
|
|
|
.Ar pkg-name
|
|
|
|
as an extended regular expression.
|
2008-05-30 14:26:09 +00:00
|
|
|
.It Fl e , -exists Ar package
|
1993-09-05 22:36:54 +00:00
|
|
|
If the package identified by
|
2007-03-04 13:14:41 +00:00
|
|
|
.Ar package
|
2004-07-02 23:13:00 +00:00
|
|
|
is currently installed, return 0, otherwise return 1.
|
|
|
|
This option
|
1993-09-05 22:36:54 +00:00
|
|
|
allows you to easily test for the presence of another (perhaps
|
|
|
|
prerequisite) package from a script.
|
2004-06-29 18:54:47 +00:00
|
|
|
.It Fl E
|
2004-07-02 23:13:00 +00:00
|
|
|
Show only matching package names.
|
|
|
|
This option takes
|
2004-06-29 18:54:47 +00:00
|
|
|
precedence over all other package formatting options.
|
|
|
|
If any packages match, return 0, otherwise return 1.
|
2007-03-04 13:14:41 +00:00
|
|
|
.It Fl l Ar prefix
|
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
|
2007-03-04 13:14:41 +00:00
|
|
|
.Ar prefix .
|
|
|
|
This is primarily of use to front-end programs that want to request a
|
2005-02-13 22:25:33 +00:00
|
|
|
lot of different information fields at once for a package, but do not
|
2007-03-04 13:14:41 +00:00
|
|
|
necessarily want the output intermingled in such a way that they cannot
|
2004-07-02 23:13:00 +00:00
|
|
|
organize it.
|
|
|
|
This lets you add a special token to the start of
|
1993-09-03 23:01:17 +00:00
|
|
|
each field.
|
2008-05-30 14:26:09 +00:00
|
|
|
.It Fl t , -template Ar template
|
1993-09-05 04:54:24 +00:00
|
|
|
Use
|
1994-12-06 00:51:50 +00:00
|
|
|
.Ar template
|
2007-03-04 13:14:41 +00:00
|
|
|
as the argument to
|
2001-07-15 08:06:20 +00:00
|
|
|
.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
|
2004-07-02 23:13:00 +00:00
|
|
|
directory is limited.
|
2007-03-04 13:14:41 +00:00
|
|
|
Be sure to leave some number of
|
|
|
|
.Ql X
|
|
|
|
characters for
|
1994-12-06 00:51:50 +00:00
|
|
|
.Xr mktemp 3
|
|
|
|
to fill in with a unique ID.
|
2001-02-07 13:45:30 +00:00
|
|
|
.Bd -ragged -offset indent -compact
|
2004-07-03 18:35:53 +00:00
|
|
|
Note: This should really not be necessary with
|
2000-12-27 15:30:30 +00:00
|
|
|
.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.
|
2008-05-30 14:26:09 +00:00
|
|
|
.It Fl P , -version
|
2002-09-09 19:43:30 +00:00
|
|
|
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
|
2007-03-04 13:14:41 +00:00
|
|
|
.Bl -tag -width ".Ev PKG_TMPDIR"
|
2003-03-25 01:22:42 +00:00
|
|
|
.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
|
2004-07-02 23:13:00 +00:00
|
|
|
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.
|
2005-11-23 10:31:59 +00:00
|
|
|
.It Ev PKG_PATH
|
|
|
|
Specifies an alternative package location, if a given package cannot be
|
|
|
|
found.
|
2006-01-09 18:27:21 +00:00
|
|
|
.It Ev PKGDIR
|
|
|
|
Specifies an alternative location to save downloaded packages to.
|
2003-05-18 21:05:22 +00:00
|
|
|
.El
|
1998-06-26 07:15:38 +00:00
|
|
|
.Sh FILES
|
2007-03-04 13:14:41 +00:00
|
|
|
.Bl -tag -width ".Pa /var/db/pkg" -compact
|
1998-06-26 07:15:38 +00:00
|
|
|
.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
|
2004-06-29 18:54:47 +00:00
|
|
|
.An John Kohl Aq jtk@rational.com ,
|
|
|
|
.An Oliver Eikemeier Aq eik@FreeBSD.org
|
1994-12-06 00:51:50 +00:00
|
|
|
.Sh BUGS
|
1993-08-26 01:19:55 +00:00
|
|
|
Sure to be some.
|