Comment 2 for bug 697008

Revision history for this message
Brian Candler (b-candler) wrote :

Sorry, this is me being dense. I thought that apt-cache search knew about the list of files in each package; careful reading of the manpage shows it's only the package names and descriptions which are searched.

'command-not-found' doesn't find mtree either:

brian@x100:~$ mtree
No command 'mtree' found, did you mean:
 Command 'ytree' from package 'ytree' (universe)
 Command 'ptree' from package 'adacontrol' (universe)
 Command 'tree' from package 'tree' (universe)
 Command 'ttree' from package 'libtemplate-perl' (main)
mtree: command not found

(Actually it *does* know about freebsd-mtree, but only if you try that explicitly)

If there's a general way to locate a package which contains a file matching pattern /foo/, apt-cache isn't it. Sorry for the noise.