Arjen Lentz said...
Hi Allan

On 21 December 2014 4:55:06 PM AEST, Allan Duncan <[email protected]>
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
_______________________________________________
luv-main mailing list
[email protected]
http://lists.luv.asn.au/listinfo/luv-main

Reply via email to