Possible Duplicate:
How do I find out which package owns a file?

How do I find out what Debian package a file came from?

link|improve this question
feedback

migrated from serverfault.com Aug 23 '10 at 12:42

This question came from our site for system administrators and desktop support professionals.

closed as exact duplicate by Gilles, Diago Aug 23 '10 at 19:39

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

2 Answers

dpkg -S /path/to/file

link|improve this answer
I think you need the dpkg to be dpkg-query. – A Student at a University Aug 29 '10 at 18:17
I don't think so... – joschi Sep 11 '10 at 8:53
feedback
up vote 0 down vote accepted
user@host:~$ dpkg-query -S /bin/bash 
bash: /bin/bash

Where bash is the package name.

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.