Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 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.

add comment

2 Answers 2

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 at 15:19
add comment

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

$dpkg -L <package name>

e.g.

$dpkg -L zip
share|improve this answer
add comment

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