Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

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

share|improve this question

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

This question came from our site for professional system and network administrators.

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers 2

dpkg -S /path/to/file

share|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
    
Both work and both seem to be in the dpkg package... –  Gert van den Berg Mar 26 '13 at 17:42
up vote 1 down vote accepted
user@host:~$ dpkg-query -S /bin/bash 
bash: /bin/bash

Where bash is the package name.

share|improve this answer

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