/ docs / pkg-which.8
pkg-which.8
  1  .\"
  2  .\" FreeBSD pkg - a next generation package for the installation and maintenance
  3  .\" of non-core utilities.
  4  .\"
  5  .\" Redistribution and use in source and binary forms, with or without
  6  .\" modification, are permitted provided that the following conditions
  7  .\" are met:
  8  .\" 1. Redistributions of source code must retain the above copyright
  9  .\"    notice, this list of conditions and the following disclaimer.
 10  .\" 2. Redistributions in binary form must reproduce the above copyright
 11  .\"    notice, this list of conditions and the following disclaimer in the
 12  .\"    documentation and/or other materials provided with the distribution.
 13  .\"
 14  .\"
 15  .\"     @(#)pkg.8
 16  .\"
 17  .Dd February 28, 2017
 18  .Dt PKG-WHICH 8
 19  .Os
 20  .Sh NAME
 21  .Nm "pkg which"
 22  .Nd display which package installed a specific file
 23  .Sh SYNOPSIS
 24  .Nm
 25  .Op Fl gopqm
 26  .Ar file
 27  .Pp
 28  .Nm
 29  .Op Cm --{glob,origin,path-search,quiet,show-match}
 30  .Ar file
 31  .Sh DESCRIPTION
 32  .Nm
 33  is used for displaying the package that installed
 34  .Ar file .
 35  .Sh OPTIONS
 36  The following options are supported by
 37  .Nm :
 38  .Bl -tag -width origin
 39  .It Fl g , Cm --glob
 40  Treat
 41  .Ao file Ac
 42  as a glob pattern.
 43  .It Fl m , Cm --show-match
 44  Show files that matched the glob pattern (requires --glob).
 45  .It Fl o , Cm --origin
 46  Show the origin of the package instead of name-version.
 47  .It Fl p , Cm --path-search
 48  Search for the filename in PATH.
 49  .It Fl q , Cm --quiet
 50  Be quiet.
 51  .El
 52  .Sh ENVIRONMENT
 53  The following environment variables affect the execution of
 54  .Nm .
 55  See
 56  .Xr pkg.conf 5
 57  for further description.
 58  .Bl -tag -width ".Ev NO_DESCRIPTIONS"
 59  .It Ev PKG_DBDIR
 60  .It Ev PATH
 61  .El
 62  .Sh FILES
 63  See
 64  .Xr pkg.conf 5 .
 65  .Sh SEE ALSO
 66  .Xr pkg_create 3 ,
 67  .Xr pkg_printf 3 ,
 68  .Xr pkg_repo_create 3 ,
 69  .Xr pkg_repos 3 ,
 70  .Xr pkg-keywords 5 ,
 71  .Xr pkg-lua-script 5 ,
 72  .Xr pkg-repository 5 ,
 73  .Xr pkg-script 5 ,
 74  .Xr pkg-triggers 5 ,
 75  .Xr pkg.conf 5 ,
 76  .Xr pkg 8 ,
 77  .Xr pkg-add 8 ,
 78  .Xr pkg-alias 8 ,
 79  .Xr pkg-annotate 8 ,
 80  .Xr pkg-audit 8 ,
 81  .Xr pkg-autoremove 8 ,
 82  .Xr pkg-check 8 ,
 83  .Xr pkg-clean 8 ,
 84  .Xr pkg-config 8 ,
 85  .Xr pkg-create 8 ,
 86  .Xr pkg-delete 8 ,
 87  .Xr pkg-fetch 8 ,
 88  .Xr pkg-help 8 ,
 89  .Xr pkg-info 8 ,
 90  .Xr pkg-install 8 ,
 91  .Xr pkg-key 8 ,
 92  .Xr pkg-lock 8 ,
 93  .Xr pkg-plugins 8 ,
 94  .Xr pkg-query 8 ,
 95  .Xr pkg-register 8 ,
 96  .Xr pkg-repo 8 ,
 97  .Xr pkg-repositories 8 ,
 98  .Xr pkg-rquery 8 ,
 99  .Xr pkg-search 8 ,
100  .Xr pkg-set 8 ,
101  .Xr pkg-shell 8 ,
102  .Xr pkg-shlib 8 ,
103  .Xr pkg-ssh 8 ,
104  .Xr pkg-stats 8 ,
105  .Xr pkg-triggers 8 ,
106  .Xr pkg-unregister 8 ,
107  .Xr pkg-update 8 ,
108  .Xr pkg-updating 8 ,
109  .Xr pkg-upgrade 8 ,
110  .Xr pkg-version 8