That's more troublesome. I think one could do it if they had the .deb archive for every package on their system (not necessarily installed), by using "dpkg --contents * | grep X" in the directory where the .debs are. I hope somebody knows of a better way.

In practice, people usually report errors about missing files to the list, and people who have a lot of stuff installed check their systems with dpkg -S and report back which package contains the offending file.

Or they do a Google search.

On Mar 12, 2004, at 4:53 AM, [EMAIL PROTECTED] wrote:

Rather, which package I need to install ... "Oh, I'm missing X - which package do I need to get?"

Jack

On Mar 11, 2004, at 3:29 AM, Alexander Hansen wrote:


On Mar 11, 2004, at 5:23 AM, [EMAIL PROTECTED] wrote:


How can I find a package based on its containing a given file?

Thanks,

Jack



If you mean which package installed what file on your system, try


dpkg -S "filename"

where filename refers to the file you're looking for.



--
Alexander K. Hansen
Fink Documentarian
Day Job:  Levitated Dipole Experiment
http://www.psfc.mit.edu/LDX



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to