Re: apt-file

On Tue, 14 Sep 2010 18:42:47 +0530
Jitender Kiraria <jitu960@xxxxxxxxx> wrote:

what result should the following command display
" apt-file search X11/Xlib.h "

An empty line means apt-file found no hits; otherwise, each line will
have the package name followed by the file name that matched.

Now, when I run the command as you show, this is what I see:

cerdea@xango2:/build/buildd/weechat$ apt-file search X11/Xlib.h
ivtools-dev: /usr/include/IV-X11/Xlib.h
libghc6-x11-dev: /usr/lib/haskell-packages/ghc6/lib/X11-
libhugs-x11-bundled: /usr/lib/hugs/packages/X11/Graphics/X11/Xlib.hs
libroot5.18: /usr/lib/root/5.18/cint/include/X11/Xlib.h
libx11-dev: /usr/include/X11/Xlib.h

So I guess you do not have the necessary repositories in your
/etc/apt/sources.list. 'apt-file' uses the repositories specified
there to search.


Anyway What is use of the command " apt-file search "
and what is it supposed to display as output in case command is
successful and in case command fails???????????

apt-file search <pattern>

<pattern> is a regular expression.

Please also note that 'man apt-file' will explain this command in more


C de-Avillez
IRC: hggdh

This email (and any attachments) is digitally signed using GNUpg
( The public key is available at
The key Id is 0xD3133E56.

Attachment: signature.asc
Description: PGP signature

ubuntu-users mailing list
Modify settings or unsubscribe at: