3

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

Braiam
  • 69,112
kjo
  • 1,217

2 Answers2

5

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

For sorting list in column, Follow:

dpkg -S /usr/share | tr " ," "\n" | sort 
Pandya
  • 37,289
fkraiem
  • 12,813
1

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

$dpkg -L <package name>

e.g.

$dpkg -L zip
Prakash H
  • 2,631