1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
.\" $OpenBSD: pkg_mklocatedb.1,v 1.4 2005/03/03 17:22:04 jmc Exp $
.\" Copyright (c) 2005 Marc Espie <espie@openbsd.org>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd February 17, 2005
.Dt PKG_MKLOCATEDB 1
.Os
.Sh NAME
.Nm pkg_mklocatedb
.Nd create a locate database for packages
.Sh SYNOPSIS
.Nm pkg_mklocatedb
.Op Fl nq
.Op Fl r Ar release
.Op Fl s Ar src
.Op Fl x Ar X11src
.Op Ar pkg-name Op Ar ...
.Sh DESCRIPTION
The
.Nm
command is used to create
databases adapted for packages,
which can be searched using the
.Xr locate 1
utility.
.Pp
Entries created for each package will have the package name prepended:
.Li kdelibs-3.3.2p2:/usr/local/bin/meinproc .
.Pp
.Nm
will build database entries for every file object for each
.Ar pkg-name
given on the command line.
If no package name is given,
.Nm
will build database entries for all currently installed packages.
.Pp
By default (unless standard output is a terminal),
the list of names is fed to
.Pa /usr/libexec/locate.mklocatedb
and the end result should be redirected to a file.
.Pp
In addition,
.Nm
can also list files in the base sets of an
.Ox
distribution, which are not exactly packages in the usual sense.
.Pp
The options are as follows:
.Bl -tag -width opt
.It Fl n
Do not pipe output to
.Pa /usr/libexec/locate.mklocatedb
(default if standard output is a terminal).
.It Fl q
Be quiet: do not report every package processed to standard error.
.It Fl r Ar release
Specify the location of a release directory
.Po
see
.Xr release 8
.Pc .
.Nm
will list release tar balls from that directory.
.It Fl s Ar src
Specify the location of
.Ox
source.
.Nm
will list sets found under that source directory.
.It Fl x Ar X11src
Specify the location of X11 source.
.Nm
will list sets found under that X11 source directory.
.El
.Sh SEE ALSO
.Xr locate 1 ,
.Xr pkg_info 1
.Sh AUTHORS
.An Marc Espie
|