3

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

Braiam
  • 66,947
  • 30
  • 177
  • 264
kjo
  • 1,107
  • 5
  • 23
  • 29

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
  • 34,843
  • 42
  • 126
  • 186
fkraiem
  • 12,344
  • 4
  • 33
  • 38
1

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

$dpkg -L <package name>

e.g.

$dpkg -L zip
Prakash V Holkar
  • 2,521
  • 7
  • 20
  • 29