Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

This question already has an answer here:

How do I find out which (apt-get-installed) package a particular file came from?

share|improve this question

marked as duplicate by Braiam, Seth Jul 11 '14 at 15:21

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.

up vote 5 down vote accepted

Use dpkg -S, as in dpkg -S /path/to/file.

For sorting list in column, Follow:

dpkg -S /usr/share | tr " ," "\n" | sort 
share|improve this answer
can you explain what is tr command?? – Creator Jul 11 '14 at 15:19

You can also find out the package path from the package name:

$dpkg -L <package name>


$dpkg -L zip
share|improve this answer

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