On Wed, Oct 2, 2013 at 9:23 AM, Bruno Pereira <[log in to unmask]> wrote:
>
> Please notice that apt-file is not installed by default on a clean Debian
> system.
>
> dpkg -S foo_file will give you the necessary package name without installing
> further software.
"dpkg -S ..." only works for installed packages.
If you can't or don't want to install apt-file, you can grep the
file(s) that it uses (for Ubuntu):
<mirror>/ubuntu/dists/raring/Contents-amd64.gz
You can do the same for SL:
<mirror>/slc6X/x86_64/yum/os/repodata/filelists.xml.gz