apt-file
C de-Avillez
hggdh2 at ubuntu.com
Tue Sep 14 13:49:59 UTC 2010
On Tue, 14 Sep 2010 18:42:47 +0530
Jitender Kiraria <jitu960 at gmail.com> 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 at 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-1.5.0.0/ghc-6.12.1/Graphics/X11/Xlib.hi
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
cerdea at xango2:/build/buildd/weechat$
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.
<snip/>
> 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
detail.
Cheers,
--
C de-Avillez
IRC: hggdh
This email (and any attachments) is digitally signed using GNUpg
(http://gnupg.org). The public key is available at http://pgp.mit.edu.
The key Id is 0xD3133E56.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100914/ac5c2eec/attachment.sig>
More information about the ubuntu-users
mailing list