Arjen Lentz said...
Hi Allan
On 21 December 2014 4:55:06 PM AEST, Allan Duncan
<amd2345(a)fastmail.com.au>
wrote:
>I have a corrupt file and wish to find which package it belongs to.
>
>In rpm I would do:
> rpm -qf <file name with full path>
>
>What is the equivalent in dpkg etc?
dpkg -S {/path/to/file}
In Debian all packages have all files listed in /var/lib/dpkg/info/ file
names is whatever_package.list.
The command "grep file_name *.list" within the above directory will bring
up the file and the name of the package.
Lindsay