658087691516030b4f899894605f0cf9c284fdbf
[dragonfly.git] / usr.bin / pkg_search / pkg_search.1
1 .\"-
2 .\" Copyright (c) 2007-09 The DragonFly Project.  All rights reserved.
3 .\"
4 .\" This code is derived from software contributed to The DragonFly Project
5 .\" by Matthias Schmidt <matthias@dragonflybsd.org>, University of Marburg.
6 .\"
7 .\" All rights reserved.
8 .\"
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions are met:
11 .\"
12 .\" - Redistributions of source code must retain the above copyright notice,
13 .\"   this list of conditions and the following disclaimer.
14 .\" - Redistributions in binary form must reproduce the above copyright notice,
15 .\"   this list of conditions and the following disclaimer in the documentation
16 .\"   and/or other materials provided with the distribution.
17 .\" - Neither the name of The DragonFly Project nor the names of its
18 .\"   contributors may be used to endorse or promote products derived
19 .\"   from this software without specific, prior written permission.
20 .\"
21 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 .\" "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 .\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 .\" A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
25 .\" CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
26 .\" EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
27 .\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
28 .\" PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29 .\" LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30 .\" NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31 .\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 .\"
33 .Dd February 8, 2009
34 .Dt PKG_SEARCH 1
35 .Os
36 .Sh NAME
37 .Nm pkg_search
38 .Nd print information about a package
39 .Sh SYNOPSIS
40 .Nm
41 .Op Fl kv
42 .Ar package
43 .Nm
44 .Fl s
45 .Ar package
46 .Nm
47 .Fl d
48 .Sh DESCRIPTION
49 .Nm
50 queries the
51 .Xr pkgsrc 7
52 index for a given
53 .Ar package .
54 If the
55 .Xr pkgsrc 7
56 index is not available
57 .Nm
58 fetches the
59 .Xr pkg_summary 5
60 file.
61 This file contains information about each package in a binary repository.
62 .Pp
63 The options are as follows:
64 .Bl -tag -width indent
65 .It Fl d
66 Download the
67 .Xr pkg_summary 5
68 file.
69 It gets overwritten if it is already installed.
70 .It Fl k
71 Also query the Info and WWW field.
72 .It Fl s
73 Show the description of a package.
74 .It Fl v
75 Print verbose information (Ports directory, URL, depencies)
76 .El
77 .Sh EXAMPLES
78 The following is an example of a typical usage
79 of the
80 .Nm
81 command:
82 .Pp
83 .Dl "pkg_search -v fvwm"
84 .Sh SEE ALSO
85 .Xr pkg_add 1 ,
86 .Xr pkg_create 1 ,
87 .Xr pkg_delete 1 ,
88 .Xr pkg_info 1 ,
89 .Xr pkg_summary 5 ,
90 .Xr pkgsrc 7
91 .Sh HISTORY
92 The
93 .Nm
94 utility first appeared in
95 .Dx 1.11 .
96 .Sh AUTHORS
97 .Nm
98 was written by
99 .An Matthias Schmidt Aq Mt matthias@dragonflybsd.org .