locate file in package?

Francisco Borges f.borges at rug.nl
Mon Aug 21 14:04:25 UTC 2006


ยป On Sun, Aug 20, 2006 at 05:54PM -0600, D. R. Evans wrote:

> On 16/08/06, Liz Young <liz at kandew.com> wrote:
> >apt-file might find it.  It is in the universe repository.
> >
> >apt-file [options] action [pattern]
> >    search      <pattern>       Search files in packages
> >    list|show   <pattern>       List files in packages
> >
> >
> Nope :-(
>
> I tried:
> apt-file search wine
> apt-file search make
> apt-file list wine
> apt-file list make
> apt-file show wine
> apt-file show make
>
> All turned up empty. (make is installed; wine is not)

I'm sorry for saying this but...

Did you read apt-file's man page? Did you even try "apt-file --help"?

Man pages and/or the --help option are very useful. Sometimes they are
too long, but for most cases they can save you a lot of time and will
allow you to "get the job done".

Command line stuff will normally get the job done as advertised, but to
actually do so, you need to know how to use the commands.

[...]

Apt-file, just like its cousin apt-get, needs to receive/update the
current list of files/packages before you can do any work with it. Why?
Because otherwise it wont know what the repositories currently have to
offer.

So you should do:

% sudo apt-file update

and then

% apt-file search wine

-- 
Francisco





More information about the kubuntu-users mailing list