On Sun, Feb 11, 2007 at 10:57:07PM EST, Kevin Mark wrote: > 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
Nice tip. I tried .. $ apt-file search lyx .. and got about thirty screenfuls .. :-( $ apt-file search bin/lyx on the other hand, returned just lyx-qt and lyx-xforms, which is .. "the correct answer" :-) I think that initially I was more thinking in terms of something on the debian web site that would let you enter a program name and possibly specify additional criteria and would return the package name(s). I've added your tip to my apt cheat sheet. Thanks, cga