SCIENTIFIC-LINUX-USERS Archives

October 2013

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Wed, 2 Oct 2013 12:54:13 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (19 lines)
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

ATOM RSS1 RSS2