Paul Wise:
> On Mon, 2015-09-28 at 06:51 +0000, Niels Thykier wrote:
> 
>> I believe this is solved (albeit differently) in apt-file/3.0~exp
>> (currently only in experimental).  In the experimental version of
>> apt-file, you can configure whether apt-file should fetch source
>> Contents (in e.g. /etc/apt.conf.d/50apt-file.conf).
> 
> Hmm, I would have thought apt-file would fetch source contents
> automatically when you have deb-src in your sources.list.
> 

It will per next release.

>> To search in the source Contents, you would do something like:
>>
>>   apt-file search --index-names dsc <search-string-here>
> 
> Hmm, I wonder why this is dsc and not deb-src or src?
> 

It has to do with how the indices are named in
/etc/apt/apt.conf.d/50apt-file.conf.  If you do not like a particular
name, you can rename it to anything you like.

> Hmm, -a source is less typing :)
> 
> BTW, does -a source still work?
> 

No, I do not believe it will for two reasons:

 * By default only the "deb" indices are considered.
 * apt does not assign an architecture to source indices.

Thanks,
~Niels

Reply via email to