[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Generic file finder question ..what tool or database



On Tue, Mar 05, 2002 at 10:06:03AM +0100, Tim Dijkstra wrote:
> Harry Putnam wrote:
>  > If I have the name of a file like xpm.h and want to know what package
>  > contains it.  And I find that `apt-cache search xpm.h' doesn't know
>  > about it.
>  >
>  > And dpkg -S xpm.h doesn't either
> 
> I'm not sure about this, but don't you have to give the complete path, so
> 
> dpkg -S /path/to/xpm/h

No, 'dpkg -S' does substring searches (technically, you give it an
unanchored wildcard match).

>  > But where is a database that contains that kind of information for all
>  > packages in a distribution? That is, a list of all the file names in
>  > all the packages of a distribution.
> 
> If you really want lists of files, I think there in
> 
> /var/lib/dpkg/info/*.list

That's exactly as useful as 'dpkg -S'.

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: