On Sun, Feb 11, 2007 at 10:53:36PM +0100, Mathias Brodala wrote: > Hello. > > Olafur Jens Sigurdsson, 11.02.2007 22:48: > > Þann 2007-02-11, 16:40:55 (-0500) skrifaði cga2000: > >> Is there a debian utility that returns the name of a package that ships > >> a given program..? > >> > >> ie. - You're looking for program "pgm" .. so you type "whichpkg pgm" > >> from the prompt and the whichpkg utility returns the name of the > >> package(s). > > > > use dpkg -S /path/to/program > > And if it???s not installed (or for every package) you can use apt-file: > > $ apt-file update > $ apt-file search pgm I usually do: apt-file search bin/pgm if its a user program as this will find sbin/pgm and bin/pgm. Of couse this will exclude games/pgm. This reduces the search by excluding docs, libs, etc. cheers, Kev -- | .''`. == Debian GNU/Linux == | my web site: | | : :' : The Universal |mysite.verizon.net/kevin.mark/| | `. `' Operating System | go to counter.li.org and | | `- http://www.debian.org/ | be counted! #238656 | | my keysever: subkeys.pgp.net | my NPO: cfsg.org |
signature.asc
Description: Digital signature