Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 Aug 23 '10 at 12:42

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

marked as duplicate by Gilles, BinaryMisfit 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.

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 .