I found Wajig...
wajig whichpackage /path/to/file
eg.
wajig whichpackage /etc/apt/sources.list
Wajig is a handy command line or console tool which wraps all the apt-get, dpkg goodness that you never wanted to learn. .
To install wajig use:
apt-get install wajig
That command 'whichpackage' itself depends on apt-file
you will still need to update its database before you can use it: - I don't know yet if wajig update whixh does an apt-get update also updates the file cache, but I expect it may.
sudo wajig update
sudo apt-file update
( and Super Cow, Easter egss ? ! )
1
Same on Ubuntu: http://askubuntu.com/questions/481/how-do-i-find-the-package-that-provides-a-file
– Ciro Santilli 新疆改造中心法轮功六四事件 – 2015-05-21T11:07:22.08730
dpkg -S /path/to/file
if you have the package installed. – Zaz – 2016-11-09T21:35:47.613