View Single Post
Posts: 540 | Thanked: 387 times | Joined on May 2009
#3
Further investigation reveals that dpkg has limited functionality in this area:

# dpkg-query -S /path/to/file

will tell you, however dpkg-query ONLY applies to installed files (this in fact what you asked), however it should be noted that yum provides will tell you the package name (and more detailed information) even if the package isn't installed.

Additionally both of these commands support wildcards.