PKG_LOCATE(1)

NAME
pkg_locate, pkglocate - find files in OpenBSD packages quickly

SYNOPSIS
pkg_locate [locate-flags] pattern ...

DESCRIPTION
pkg_locate is a front-end to locate(1) using databases covering all base, X11, and package files known in OpenBSD

Any parameters and options are passed to locate(1) as-is.

The search result for OpenBSD package files has the following format:

    fullpkgname:pkgpath:pathname

where fullpkgname is the name of the package pkgpath its location within the ports tree (see pkgpath(7)) and pathname the absolute pathname of the installed file.

The search result for base system and X Window System files has the following format:

    setname:pathname

where setname is the name of the install set, and pathname the absolute pathname of the installed file.

For instance, at the time of this writing:

    $ pkg_locate bin/urxvt
    rxvt-unicode-9.22p5:x11/rxvt-unicode:/usr/local/bin/urxvt
    rxvt-unicode-9.22p5:x11/rxvt-unicode:/usr/local/bin/urxvtc
    rxvt-unicode-9.22p5:x11/rxvt-unicode:/usr/local/bin/urxvtd
    $ pkg_locate -i libx11.
    xbase62:/usr/X11R6/lib/libX11.a
    xbase62:/usr/X11R6/lib/libX11.la
    xbase62:/usr/X11R6/lib/libX11.so.16.1
    $ pkg_locate clang.1
    comp62:/usr/share/man/man1/clang.1
    llvm-5.0.0p1:devel/llvm,-main:/usr/local/man/man1/clang.1

FILES
${LOCALBASE}/share/pkglocatedb
    locate database containing information about files in OpenBSD packages.
/usr/lib/locate/src.db
    locate database containing information about files in OpenBSD base installation.
${X11BASE}/lib/locate/xorg.db
    locate database containing information about files in X(7), if installed.

SEE ALSO
locate(1), pkg_mklocatedb(1), pkgpath(7)

AUTHORS
Marc Espie <espie@openbsd.org>